Extract date (yyyy/mm/dd) from a timestamp in PostgreSQL

前端 未结 7 1442
南旧
南旧 2020-11-28 17:55

I want to extract just the date part from a timestamp in PostgreSQL.

I need it to be a postgresql DATE type so I can insert it into another table that e

相关标签:
7条回答
  • 2020-11-28 18:38

    Have you tried to cast it to a date, with <mydatetime>::date ?

    0 讨论(0)
提交回复
热议问题