burkybang
03/22/2022, 5:42 PMSELECT
id,
datetime || ' ' || TO_CHAR(datetime, 'fmHH:MI am') datetime, /* returns 3:10 pm */
messagedate || ' ' || TO_CHAR(messagedate, 'fmHH:MI am') messagedate, /* returns 12:10 pm */
lastmodifieddate || ' ' || TO_CHAR(lastmodifieddate, 'fmHH:MI am') lastmodifieddate /* returns 7:10 am, what I ended up using */
FROM Message
WHERE id = 269550
Edit: I figured out that if I use lastmodifieddate, it returns the correct time of 7:10 am. Why are there 2 other date fields that are in 2 different time zones?Shai Coleman
03/28/2022, 5:32 PMSELECT to_char(sys_extract_utc(transaction.lastmodifieddate), 'YYYY-MM-DD"T"HH24:MI:SS"Z"') AS transaction_lastmodifieddate FROM transaction