CURDATE()

Overview

Returns the current date in the currently active timezone.

USAGE

CURDATE()

DETAILS

CURDATE() is a date-time function that returns the current date in the currently active timezone.

When called in string context, the return value is formatted as YYYY-MM-DD.

When called in numeric context, the return value is formatted as YYYYMMDD.

See UTC_DATE() for an equivalent function using the UTC timezone.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT CURDATE();
+------------+
| CURDATE()  |
+------------+
| 2020-11-06 |
+------------+
SELECT CURDATE()+0;
+-------------+
| CURDATE()+0 |
+-------------+
|    20201106 |
+-------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES