Reset Sunday as first start week [message #614354] |
Wed, 21 May 2014 02:36 |
anil_mk
Messages: 146 Registered: August 2006 Location: Bangalore, India
|
Senior Member |
|
|
Hi All,
Please let me know how to reset Sunday as first week of year
Below is the query which returns first week of year
select TO_CHAR(to_date('31-Dec-2012','dd-mm-yyyy'), 'IW') as start_week2013,TO_CHAR(to_date('30-Dec-2013','dd-mm-yyyy'), 'IW') as start_week2014 from dual;
start_week2013 start_week2014
---------------------------------
01 01
Thanks,
Anil MK
|
|
|
|
|
|
|
|
|