Is there any way to format timestamp to the following format in PostgreSQL?
2019-10-14T16:16:47.026Z
Is there any way to format timestamp to the following format in PostgreSQL?
2019-10-14T16:16:47.026Z
I believe you want:
select to_char(col, 'YYYY-MM-DD"T"HH:MI:SS.MSTZ')
Of course, the timezone depends on the timezone for the value.