DATE$¶
Function¶
DATE$ returns a ten character string including the day, month and year separated by dashes. It may be used both as a statement and a variable.
Syntax¶
A$ = DATE$
DATE$ = B$
Example¶
10 DATE$ = "5/12/86"
20 PRINT DATE$
Remarks¶
The ten character string returned by DATE$ is in the format MM-DD-YYYY. As in the example, when DATE$ is used as a variable leading zeros may be omitted and the year defaulted to 19yy.
DATE$ will accept / or : or - delimiters to set the date, but will always print the date using -.