skip to Main Content

Format Date with timezone (PostgreSQL)

I have the following query which I'm unable to solve: SELECT DISTINCT m.id, TO_CHAR(m.date, 'YYYY-MM-DD')::timestamp AS formatted_date, FROM table.match m In the formatted_date field I get the following output: 2012-12-02T00:00:00.000Z Does anyone know how to format it as to get…

VIEW QUESTION
Back To Top
Search