date$

Syntax

date = DATE$(code)

Arguments

date: text

code: see the table below

Meaning

Returns the system date as a character string. The code determines how the date is presented.

Code

Meaning

1

in the form mm/dd/yy (USA format)

2

in the form yy.ddd (Julian format)

3

in the form dd/mm/yy (European format)

4

in the form yy-mm-dd (ISO format)

code + 4

as above, but with a 4-digit year

Example

date = date$(8)

Result

The variable date is filled with the current system date, at the time of executing this line of code, in this case: 2002-05-13