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!

Return week number based on fiscal calendar

NSK2KSNDec 5 2017 — edited Dec 10 2017

Hi All,

to_char(sysdate,'IW') gives a week number in a year based on jan - dec calendar. Jan 1st week will be 1, jan 2nd week 2 and so on..

my requirement is calendar should consider based on Jul - Jun calendar i.e., July 1st week should be return as 1, second week should return as 2 and so on.... how do I achieve this? Is there any function related to fiscal calendar year?

Many thanks,

This post has been answered by mNem on Dec 6 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 3 2018
Added on Dec 5 2017
14 comments
893 views