Postgres wyodrębnia czas ze znacznika czasu
select cast(timestamp '2014-04-03 12:34:00' as time)
-- equivalent to
select '2014-04-03 12:34:00'::time
Confused Centipede
select cast(timestamp '2014-04-03 12:34:00' as time)
-- equivalent to
select '2014-04-03 12:34:00'::time
SELECT '2018-07-25 10:30:30'::TIMESTAMP::DATE;
SELECT DATE(SUBSTRING('2018-07-25 10:30:30' FROM 1 FOR 10));
SELECT DATE(column_name) FROM table_name;