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

Date$

The Date$ function returns today's date.

Usage

Used for example to concatenate today's date with a filename.

Syntax

var$=Date$([<format>])

Parameter

<format>, integer, 0 or 1. 0 for short date format. 1 for long date format. The default value is 0.

Return value

var$, string, today's date. The short and long date formats used for displaying today's date are the ones specified in Region and Language Settings. A standard short format is 12/22/2013.

See also

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

Example

msgbox(date$())