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!

week to date

Alan SearleJan 17 2010 — edited Jan 17 2010
Dear All,

It is no problem to convert a date to get the week number:

TO_CHAR(sysdate, 'YYYYIW')

But what I need to do is to go the other way and generate the date of the Monday for that particular week.

With a month and the TO_DATE command this would be no problem. And from my googling I see that there are procedures available that will do what I need.

But my question is whether I am able to do this conversion with an in-built Oracle function? Or do I need to incorporate PL/SQL?

Any tips would be gratefully received.

Regards and thanks,
Alan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 14 2010
Added on Jan 17 2010
5 comments
5,148 views