get date ISO in psql
snippet in sql

get date ISO in psql

user7477

SELECT cast(to_char (now()::timestamp at time zone 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as varchar)