DATE Function

Returns a string value containing the internal system date.

Syntax

DATE( )

Comments

The internal date represents the number of days since December 31, 1967.

Internal dates are converted to external form with the OCONV intrinsic function or with a format string output conversion.

Examples

Q = DATE()
PRINT Q

Assigns the string value of internal date to variable Q and prints Q.

WRITET DATE() ELSE STOP

Writes the string value of the current internal date onto a magnetic tape record. If the tape unit is not attached, the program terminates.

DD=DATE()
PRINT DD "D2"

Assigns the string value of internal date to variable DD, then prints DD in external format as dd mmm yy.