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!

To convert GMT time to Local timezone

628061Mar 21 2013 — edited Mar 21 2013
Hi,

I have a date with this format "19-MAR-13 06.53.57.000000000 PM". I want to make to convert this time to local timezone where the data format should show the same like input.

I am trying with following query :

select from_tz(cast(to_date('19-MAR-13 06.53.57.000000000 PM', 'DD-MON-YYYY HH24:MI') as timestamp),'GMT') at time zone 'JAPAN'
FROM DUAL;

But for some reason it is showing "date format picture " error.

Can someone help me.


Thanks,
Prakash
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2013
Added on Mar 21 2013
10 comments
2,707 views