How does the QUEST language handle dates?
-
The default format is MM/DD/YYYY.
-
You can change the format using the DATE FORMAT IS command.
The formats may be:
-
MM/DD/YYYY
-
MM/DD/YY
-
DD/MM/YYYY
-
DD/MM/YY
-
YYYY/MM/DD
-
YY/MM/DD
-
The system string *TODAY* returns today's date in the default format MM/DD/YYYY.
*TODAY* is subject to the rules of the DATE FORMAT IS command.
-
The system string *FTODAY* returns today's date in the default format MM.DD.YYYY.
*FTODAY* is subject to the rules of the DATE FORMAT IS command.
-
If only two numbers are used for the year, 20YY is assumed in Release 12.1 and
earlier. In Version 1, the default century span is 1920 through 2020.
QUEST programs manipulating dates specified with a two-digit year value may require
the SYSTEM 2000 system option
YEARCUTOFF
to dictate century calculation. For more information
refer to the QUEST Language and System-Wide Commands manual.