Топ-100
 
CerebroSQL

DATE FUNCTION

Database: MySQL

Topic

Syntax:
DATE(expr)

Extracts the date part of the date or datetime expression expr.

Example

mysql> SELECT DATE('2003-12-31 01:02:03');
-> '2003-12-31'