129
MySQL DATE() Function
The date() is a MySQL date/time function. It is used to get the date from given date/datetime.
Syntax
Parameter:
expression: date/datetime value to be extracted.
Returns
This function will return NULL if the expression is not a date or a datetime value.
Example 1
Output:
Example 2
Output:
Next TopicMySQL date/time