smysql get date code example
Example 1: postgresql get date from datetime
SELECT DATE(column_name) FROM table_name;
Example 2: mysql select date from datetime
WHERE DATE(datetime) = '2009-10-20'
SELECT DATE(column_name) FROM table_name;
WHERE DATE(datetime) = '2009-10-20'