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

Code Example 1

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

Learn ReactJs, React Native from akashmittal.com