PL/SQL (MOSC)

MOSC Banner

GMT to EST

edited Jan 4, 2016 4:37PM in PL/SQL (MOSC) 3 commentsAnswered

Would like to convert GMT into EST and GMT into IST. the below SQL convert nano seconds into GMT date format properly. But I want date format in EST and IST format.

SELECT to_char(TO_DATE('19700101','yyyymmdd') + ((1450429370809904000/1000000000)/24/60/60),'YYYY-MM-DD HH24:MI:SS')  mydate FROM dual;

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