Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: To_char ('IW') format element
Randy Harris wrote:
> "Randy Harris" <randy_at_SpamFree.com> wrote in message
> news:LWBHd.11135$Vj3.736_at_newssvr17.news.prodigy.com...
>
>>I'm looking for clarification of the 'IW' format element. The docs say it >>is based on the ISO standard, but I haven't been able to find further >>information. It's rather obvious if Jan falls on a Monday, week 1 begins >>the same day. But, what if Jan 1 falls on a Tuesday? Does week 1 begin >>that day, or the following Monday?
With ISO there can be a 53rd week in a year.
SELECT TO_CHAR(sysdate-19, 'IW') FROM dual;
written on the 19th of January, 2005.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Wed Jan 19 2005 - 19:04:39 CST