to_date
Converts a DATETIME value into a date.
Syntaxβ
DATE TO_DATE(DATETIME datetime)
Examplesβ
MySQL > select to_date("2020-02-02 00:00:00");
+--------------------------------+
| to_date('2020-02-02 00:00:00') |
+--------------------------------+
| 2020-02-02 |
+--------------------------------+
keywordβ
TO_DATE