Description:
The FORMATTED-DATE function returns a date string in the requested format from a supplied date in integer date form. The function
type depends on the type of argument-1 as follows:
argument-1 type
|
Function type
|
Alphanumeric
|
Alphanumeric
|
National
|
National
|
UTF-8
|
UTF-8
|
General Format
FUNCTION FORMATTED-DATE (argument-1, argument-2)
Arguments
- Argument-1 must a literal of type alphanumeric, UTF-8 or national, and contain a valid date format. See
Date and Time Formats for details.
- Argument-2 must be an integer date, corresponding to the number of days since 31 December 1600; see
Integer Date Form in
Date and Time Formats for more details.
Note: Setting the INTDATE Compiler directive to a value other than its default value will have an effect on this calculation.
Returned values
- The returned value is a string containing the date in argument-2, in the format corresponding to argument-1.