Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
CURRENT_ DATE And CURDATE
On this page
The CURRENT_ and CURDATE() functions return the current date.
Syntax
CURRENT_DATE()
CURDATE()Return Type
Date object.
Remarks
CURDATE() and CURRENT_ functions are synonyms to each other.YYY-MM-DD (string) or YYYYMMDD (numeric) format.
Examples
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
Last modified: