Получить вчерашнюю дату ISO в PSQL
SELECT cast(to_char ((now()::date -1)::timestamp at time zone 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as varchar)
Envious Earthworm
SELECT cast(to_char ((now()::date -1)::timestamp at time zone 'UTC', 'YYYY-MM-DD"T"HH24:MI:SS"Z"') as varchar)
SELECT current_date - INTEGER '1' AS yesterday_date;