Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-01857: not a valid time zone

New RootsMar 12 2024

Hi Experts,

I am getting ORA-01857: not a valid time zone error while running below statment.

The string 'Tue Mar 12 02:46:37 EDT 2024' is coming from one of the table column and it to be converted to GMT.

SELECT TO_CHAR(TO_TIMESTAMP_TZ('Tue Mar 12 02:46:37 EDT 2024','dy mon dd hh24:mi:ss tzd yyyy')AT TIME ZONE 'GMT','yyyy-mm-dd hh24:mi:ss tzr') FROM DUAL;

This post has been answered by mathguy on Mar 12 2024
Jump to Answer
Comments
Post Details
Added on Mar 12 2024
6 comments
1,802 views