Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Oracle SQL - Query showing different dates depending which timezone being queried from

$
0
0

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_CODEORD_NUMSHIP_DATE
10001000103-JUN-2024

Query result using sql below from different time zones,

SELECT CUST_CODE, ORD_NUM, SHIP_DATEFROM   ORDERS
CUST_CODEORD_NUMSHIP_DATE (EST)
1000100016/3/2024 12:00:00 AM
CUST_CODEORD_NUMSHIP_DATE (MDT)
1000100016/2/2024 10:00:00 PM
CUST_CODEORD_NUMSHIP_DATE (PDT)
1000100016/2/2024 09:00:00 PM

Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>