0

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?

user2102665
  • 429
  • 2
  • 11
  • 26

0 Answers0