MonthName()

Top  Previous  Next

MonthName() - Creates a string indicating the specified month

Description

The MonthName() function returns a string representation of the name for the specified month, e.g. January ... December.

MonthName(month[, abbreviate])

Parameters
The month parameter is the numeric representation for the month. For example, January is 1, December is 12.

The optional abbreviate parameter is a boolean value (True or False) indicating whether the month name should be abbreviated.

Example

MyDate = MonthName(2) 'returns february

 

MyDate = MonthName(4, True'returns Apr