>>-DATE--(--expression--)--------------------------------------><
The schema is SYSIBM.
The DATE function returns a date from a value.
The argument must be a date, timestamp, a positive number less than or equal to 3 652 059, a valid character string representation of a date or timestamp, or a character string of length 7 that is neither a CLOB nor a LONG VARCHAR.
If the argument is a character string of length 7, it must represent a valid date in the form yyyynnn, where yyyy are digits denoting a year, and nnn are digits between 001 and 366, denoting a day of that year.
The result of the function is a date. If the argument can be null, the result can be null; if the argument is null, the result is the null value.
The other rules depend on the data type of the argument:
Examples:
DATE(RECEIVED)
Results in an internal representation of '1988-12-25'.
DATE('1988-12-25')
DATE('25.12.1988')
DATE(35)