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

前端 未结 7 1492
南旧
南旧 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:33

    In postgres simply : TO_CHAR(timestamp_column, 'DD/MM/YYYY') as submission_date

提交回复
热议问题