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

Day$

The Day$ function returns the day of the month (01 to 31).

Usage

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

Syntax

var$=Day$()

Parameter

None.

Return value

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

See also

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

Example

msgbox(day$())