## DATE(a)

DATE(a) is a function (extraction) that calculates a date value for the expression a.

| Result of DATE(a) function
a is a date value or an alphanumeric value that matches the current date format | This date value
a is an alphanumeric value that does not match the current date format | Error message
a is a timestamp value or an alphanumeric value that matches the current timestamp format | The date value that is part of the timestamp
a is a fixed point or floating point number | Date value that is equal to the xth day after December 31, 0000 (x=TRUNC(a))
a is a NULL value | NULL Value
a is special NULL value | Error message

### Examples

SQL Tutorial, Functions