postgresql timestamp extract date code example
Example 1: postgres extract date from timestamp
SELECT DATE(column_name) FROM table_name;
Example 2: postgres extract date from timestamp
SELECT '2018-07-25 10:30:30'::TIMESTAMP::DATE;
SELECT DATE(column_name) FROM table_name;
SELECT '2018-07-25 10:30:30'::TIMESTAMP::DATE;