top of page
CerebroSQL

DATE FUNCTION

Database: MySQL

68747470733a2f2f7374796c65732e7265646469746d656469612e636f6d2f74355f32716d366b2f7374796c65

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'

bottom of page