I'm trying to get the same dates to show up. Depending on the time zone the query is being run from, the results will show one day behind from what's shown on the actual table.
For the example below, how would I go about to get the queried dates to all show up as 6/3/2024 irrespective of the time zone the query is being run from?
Thanks in advance.
Example table,
CUST_CODE | ORD_NUM | SHIP_DATE |
---|---|---|
10001 | 0001 | 03-JUN-2024 |
Query result using sql below from different time zones,
SELECT CUST_CODE, ORD_NUM, SHIP_DATEFROM ORDERS
CUST_CODE | ORD_NUM | SHIP_DATE (EST) |
---|---|---|
10001 | 0001 | 6/3/2024 12:00:00 AM |
CUST_CODE | ORD_NUM | SHIP_DATE (MDT) |
---|---|---|
10001 | 0001 | 6/2/2024 10:00:00 PM |
CUST_CODE | ORD_NUM | SHIP_DATE (PDT) |
---|---|---|
10001 | 0001 | 6/2/2024 09:00:00 PM |