I have a timestamp format, 2019-12-12T16:10:02+11:00 and want to only extract the date value 2019-12-12 in PostgreSQL.
I tried SELECT DATE_TRUNC('day', TIMESTAMP '2019-12-12T16:10:02+11:00');
the value return as 2019-12-12 00:00:00.0, any way can completely get rid of the time portion?