Check out example codes for "get yesterday date ISO in psql". It will help you in understanding the concepts better.

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com