The DATE() function returns the date part from the "Date and Time" argument.
The argument must be of type DATE or DATETIME, but can also be a number in the format YYMMDD, YYYYMMDD or YYYYMMDDhhmmss(.microseconds).
If the value of argument "Date and Time" is invalid or NULL, the DATE() function returns NULL. |