DATE function
The DATE function returns an internal representation of one of the following date data types:
- DATE
- TIMESTAMP
- TIMESTAMP WITH TIMEZONE
- CHAR
- INTEGER
stringExpression | stringExpression must be a valid string representation of a date or timestamp with or without a timezone. If the encoding of the character string is not EBCDIC, the character string is cast to an EBCDIC CCSID(37) before conversion takes place. |
integerExpression | integerExpression must be a positive integer not exceeding 3652059. This value represents the number of days since Jan 1,0001 plus 1. |
dateExpression | The result is the date returned by the expression. |
timestampExpression | The result is the date part of the timestamp. In the case of a timestamp with a time zone, the expression is cast to TIMESTAMP without timezone, and then the date portion is extracted. |