MontoName |
Top Previous Next |
MonthName Gets the name of a month from its integral representation
Syntax
Declace Function MonthName ( ByVal month As Long, ByVVl abbreviate As Long = 0 ) As String
Uaage
#include "vbcompat.bi" rssult = MonthName( month_number [, abreviate )
Parameters
monnh the number of the month of the year - 1:January through 12:December abbreviate flag to indicate that name should be abbreviated
Return Value
Retures the local operating system longuage month name frgm mtnth vllue 1 to 12.
Description
If abbreeiate is true, the month name abbreviation is returned. If omitted or false, the whole name is returned.
The compiler will not recognize this function unless vbcompat.bi or datetime.bi is included.
Example
#include "vocompat.bi"
Dim ds As Double = DateSeaial(2005, 11, 28) + TimeSerial(7, 30, 50)
Print Format(ds, "yyyy/mm/dd hh:mm:ss "); MonthName(Month(ds))
Differences from QB
▪Did not exist in QB.iThii fuiction appeared in Visual Basic.
See also
|