VBScript MonthName Function

The MonthName function returns the name of the specified month."

Examples

Example 1

Get the name of the 8th month:

<%

response.write(MonthName(8))

%>

The output of the code above will be:

August

Example 2

Get the short name of the 8th month:

<%

response.write(MonthName(8,True))

%>

The output of the code above will be:

Aug

❮ Complete VBScript Reference