DATE function
Syntax
DATE ( )
Description
Use the DATE function to return the numeric value of the internal system date. Although the DATE function takes no arguments, parentheses are required to identify it as a function.
The internal format for the date is based on a reference date of December 31, 1967, which is day 0. All dates thereafter are positive numbers representing the number of days elapsed since day 0. All dates before day 0 are negative numbers representing the number of days before day 0. For example:
Date | Internal Representation |
---|---|
December 10, 1967 | -21 |
November 15, 1967 | -46 |
February 15, 1968 | 46 |
January 1, 1985 | 6575 |
Example
PRINT DATE()
PRINT OCONV(DATE(),"D2/")
This is the program output:
9116
12/15/92