Documentation Comments
Use this form to comment on this topic. You can also provide any general observations about the Online Documentation, or request that additional information be added in a future release.
RealityV15.1Online Documentation (MoTW) Revision 7
DATE Function (DataBasic) (m618703+date_f.htm)
Returns a string value containing the internal system date.
DATE( )
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.
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.