General Format
FUNCTION DATE-TO-YYYYMMDD ( argument-1 [argument-2] )
Arguments
- Argument-1 must be a positive integer less than 1,000,000.
- Argument-2 must be an integer.
- If argument-2 is omitted, the function is evaluated as though 50 were specified.
- The sum of the year at the time of execution and the value of argument-2 must be less than 10,000 and greater than 1699.
Returned Values
- The equivalent arithmetic expression is:
(FUNCTION YEAR-TO-YYYY (YY, argument-2) * 10000 + nnnn) where:
YY = FUNCTION INTEGER (argument-1/10000) nnnn = FUNCTION MOD (argument-1, 10000)
and where argument-1 of the INTEGER and MOD functions and argument-2 of the YEAR-TO-YYYY function are the same as argument-1 and argument-2 of the DATE-TO-YYYYMMDD function itself.
Notes