Home > Language Reference > Date/Time Functions > Month$

Month$

The Month$ function returns the month of the year (01 to 12).

Usage

Used for example to concatenate the month of the year with a filename.

Syntax

var$=Month$()

Parameter

None.

Return value

var$, string, month of the year(2 characters). If the month is less than 10, a leading 0 is added.

See also

Date$
DateBetween
DateToDate$
Day$
Hour$
Hundreds
Min$
Sec$
Time$
WeekDay
Year$

Example

msgbox(Month$())