DATE() extracts the date part of the date or datetime

Example

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

Returns

2003-12-31