VBScript MonthName Function
Complete VBScript Reference Manual
The MonthName function returns the name of the specified month.
Syntax
MonthName(month[,abbreviate])
| Parameters | Description |
|---|---|
| month | Required. The number of the month (for example, January is 1, February is 2, and so on). |
| abbreviate | Optional. A Boolean value indicating whether to abbreviate the month name. The default is False. |
Example
Example 1
Get the name of the 8th month:
The example above produces the following output:
August
Try it »
Example 2
Get the abbreviation of the 8th month:
The example above produces the following output:
Aug
Try it »
Complete VBScript Reference Manual