UTC_DATE()

Overview

Returns the current date in the UTC timezone.

USAGE

UTC_DATE()

DETAILS

UTC_DATE() is a date-time function that returns the current date in the UTC timezone (Coordinated Universal Time).

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 CURDATE() for an equivalent function using the currently active timezone.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT UTC_DATE();
+------------+
| UTC_DATE() |
+------------+
| 2020-11-06 |
+------------+
SELECT UTC_DATE()+0;
+--------------+
| UTC_DATE()+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