Name
DATE()
Synopsis
DATE(expr
)
Extracts the date part of the date for a DATETIME
expression
expr. This code returns the value
“1961-05-02”:
SELECT DATE('1961-05-02 14:56:23');
Get Learning PHP, MySQL, and JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.