Watch the 7.3 Webinar On-Demand
This new release brings updates to Universal Storage, query
optimization, and usability that you won’t want to miss.
Returns the current date.
CURRENT_DATE()
CURDATE()
Date object.
CURDATE()
and CURRENT_DATE()
functions are synonyms to each other. Both the functions return the current date in either YYY-MM-DD
(string) or YYYYMMDD
(numeric) format.
The following functions return the current date in string format.
SELECT CURRENT_DATE(), CURDATE();
****
+-------------------------------------------------------------+
| CURRENT_DATE() | CURDATE() |
+-------------------------------------------------------------+
| 2019-03-22 | 2019-03-22 |
+-------------------------------------------------------------+
Related Topics