DataBasic Reference > Statements and Intrinsic Functions > D > DATE Function

Comment on this topic

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.

Reality V15.0 ()

DATE Function (DataBasic) (m618703+date_f.htm)

To

Reality

Version

Topic

Submitted by

Company

Location

Email address

Comment

 

 

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.

RealityV15.0Comment on this topic