Date$ – Date/Time Functions





Date$ Function


Description

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.

Example

msgbox(Date$())