Converts a date string to a 64-bit data value.
1 – Input
A complete date string formatted as "dd-MMM-yyyy hh:mm:ss.cc". Unpredictable results may occur if you supply only a portion of a date string, such as "21-MAR-1990". The month must be specified in uppercase.
2 – Output
A date data value formatted as "dd-MMM-yyyy hh:mm:ss.cc".
3 – Example
DTR> DECLARE X USAGE DATE EDIT_STRING X(23). DTR> X = FN$DATE("30-AUG-1990 15:20:31.45") DTR> PRINT X X 30-Aug-1990 15:20:31.45 DTR> DTR> DECLARE Y USAGE DATE EDIT_STRING X(23). DTR> DECLARE Z PIC X(23). DTR> Z = "20-FEB-1990 14:54:29.83" DTR> Y = FN$DATE (Z) DTR> PRINT Y Y 20-Feb-1990 14:54:29.83 DTR>