Description
The MonthName() function returns the name of the specified month.
This function has the form:
MonthName(month [,abbreviate])
Parameter | Description |
---|---|
month | (required) Specifies the number of the month (January is 1, February is 2, etc.) |
abbreviate | (optional) A Boolean value that indicates if the month name is to be abbreviated. Default is False |
Examples
The following examples show the basic use of this function:
Example 1
Get the name of the 8th month:
Msgbox(MonthName(8))
This produces the following result:
August
Example 2
Get the short name of the 8th month:
Msgbox(MonthName(8,True))
This produces the following result:
Aug
Miscellaneous Information
Supported in Version: | 2.0 |
---|