How to select only date from a DATETIME field in MySQL?

SELECT DATE(ColumnName) FROM tablename;

More on MySQL DATE() function.

Leave a Comment