Syntax
DATE(expr)
Purpose
You can call this function to return 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 (0.00 sec)