CURRENT_ DATE And CURDATE
Warning
SingleStore 9.0 gives you the opportunity to preview, evaluate, and provide feedback on new and upcoming features prior to their general availability. In the interim, SingleStore 8.9 is recommended for production workloads, which can later be upgraded to SingleStore 9.0.
On this page
Returns 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: May 31, 2023