I want to change the date format in PostgreSQL to be like this:
2019-03-21T00:00:00.
When I try
to_char(timestamp, 'YYYY-MM-DD"T"HH24:MI:SS')
I got this:
07/04/19 00:00
Also, if I change the format to be YYYY-MM-DD''T''HH24:MI:SS
, e.g. to put two single quotes in each side of "T"
I get
2019-04-07'T'00:00:00
Thanks