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!

Oracle to_char (YYYY-IW)

738684Dec 3 2009 — edited Dec 3 2009
Why is the 20100101 returning 2010-53 instead of 2009-53?

SQL> select to_char(to_date('20100101','YYYYMMDD'),'YYYY-IW') from dual;

2010-53

SQL> select to_char(to_date('20100103','YYYYMMDD'),'YYYY-IW') from dual;

2010-53

SQL> select to_char(to_date('20100104','YYYYMMDD'),'YYYY-IW') from dual;

2010-01
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 31 2009
Added on Dec 3 2009
4 comments
11,309 views