Month$ – Date/Time Functions





Month$ Function


Description

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$()

Parameters

None.

Return Value

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

Example

msgbox(Month$())