DATE

2024-04-19 08:42:50  Updated

Syntax

DATE(expr)

Purpose

DATE() returns the date of the time or datetime expression expr.

Examples

obclient> SELECT DATE('2021-07-14 19:12:03');
+-----------------------------+
| DATE('2021-07-14 19:12:03') |
+-----------------------------+
| 2021-07-14                  |
+-----------------------------+
1 row in set

Contact Us