Skip to Main Content
  • Questions
  • Convert GMT to locate date using oracle SQL developer

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Mercy.

Asked: February 03, 2021 - 7:26 pm UTC

Last updated: February 04, 2021 - 4:22 am UTC

Version: Version 17.3.1.279

Viewed 1000+ times

You Asked

how to convert "Mon Jan 25 2021 15:01:07 GMT-0600 (Central Standard Time)" to local date format mm/dd/yyyy or mm-dd-yyyy

and Connor said...

Here's an example for me here in Perth

SQL> with t as
  2  ( select to_timestamp('Mon Jan 25 2021 15:01:07','Dy Mon DD YYYY HH24:MI:SS') d
  3    from dual
  4  )
  5  select from_tz(d,'CST') at time zone 'Australia/Perth'  from t;

FROM_TZ(D,'CST')ATTIMEZONE'AUSTRALIA/PERTH'
---------------------------------------------------------------------------
26-JAN-21 05.01.07.000000000 AM AUSTRALIA/PERTH


Is this answer out of date? If it is, please let us know via a Comment

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library