SQL Language (MOSC)

MOSC Banner

Retrieve UTC timestamp as local time

edited Aug 23, 2014 8:59AM in SQL Language (MOSC) 3 commentsAnswered ✓

Hello, we are running Oracle Database 11g Release 11.2.0.3.0 - 64bit Production Standard Edition on Windows.  We have a purchased product that defines columns as timestamp.  So, even though our local time is Eastern, the timestamp is stored as GMT.  For example: a transaction was run on “07/08/2014 22:00:56 PM EDT”, the timestamp stored to the Oracle database is “07/09/2014 02:00:56 PM GMT”.  We would like to query the table using the original local timestamp value “07/08/2014 22:00:56 PM EDT” and find the row with “07/09/2014 02:00:56 PM GMT”.   How do we code our query to make this conversion and find the correct row.  Thanks.

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center