ADELIA |
VADELIA |
SADELIA |
WADELIA |
MADELIA |
(I/B) |
(I/B) |
(B) |
(I/B) |
(I) |
Warning: In the case of ADELIA programs, this function is not compatible with C generator.
Description
This predefined function is used to convert a numeric field containing a date in the YYYYMMDD format into a DATE type variable.
Syntax
Result = &NUM_TO_DATE(Numeric field)
Parameters
|
Description |
Contents |
Controls |
Result |
DATE variable. |
Date given as a parameter, converted into a DATE variable. |
|
Numeric field |
Eight-character NUM_E or NUM_P type numeric variable or constant with 0 decimals. |
Numeric field containing a date in the YYYYMMDD format, to be converted into a DATE variable. |
Mandatory parameter. |
Note: If the date in the numeric field is not valid, the date returned is set to 01/01/0001 (*LOVAL).
Example
DATE_VAR = &NUM_TO_DATE(20020225)
List of predefined functions by topic