Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

VBScript MonthName Function

VBScript MonthName Function


VBScript reference manual 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 »


VBScript reference manual Complete VBScript Reference Manual