get yesterday date ISO in psql
SELECT cast(to_char ((now()::date -1)::timestamp at time zone 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as varchar)
Are there any code examples left?
New code examples in category SQL
SELECT cast(to_char ((now()::date -1)::timestamp at time zone 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as varchar)