Date in mmm yyyy format in postgresql

后端 未结 5 1307

I have a table with a column of type timestamp without time zone.

I want to select that column with the mmm yyyy format – for example, “Mar 2011”. How to f

5条回答
  •  旧巷少年郎
    2021-02-01 13:51

    I think in Postgres you can play with formats for example if you want dd/mm/yyyy

    TO_CHAR(submit_time, 'DD/MM/YYYY') as submit_date
    

提交回复
热议问题