Calculate date from week of year, or week to date


select decode(to_Char(to_date(’01-JAN-’||&Cur_year),’DY’),’MON’, 
to_date(’01-JAN-’||&Cur_year),next_day(to_date(’01-JAN-’||&Cur_year),’MON’))
+(7*(&cur_week-1)) from dual;
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: