Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

CURRENT_DATE And CURDATE

The CURRENT_DATE() and CURDATE() functions return the current date.

Syntax

CURRENT_DATE()
CURDATE()

Return Type

Date object.

Remarks

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.

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:

Was this article helpful?