| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.tools -> Re: get what week a date falls in based on 52 week calendar
Sybrand Bakker wrote:
> On Wed, 13 Jul 2005 20:27:04 +0200, Maxim Demenko <mdemenko_at_gmail.com>
> wrote:
>
>
>>jeffchirco_at_gmail.com wrote: >> >>>Is there a way to get the week number that a date falls in based on the >>>52 week calendar? Is there a function or how could I obtain this? >>>Thanks. >>> >>>Jeff >>> >> >>I assume you mean 53 week calendar ,in that case are you asking about >>format model 'WW' ? >> >>select to_char(sysdate,'WW') from dual; >> >>Best regards >> >>Maxim
I didn't had in mind ISO by answering, so spontaneously typed 53 ;-) But regarding the format modifiers, 'WW' means 53, 'IW' may vary (according ISO 8601) 52 or 53 resp.
Best regards
Maxim Received on Wed Jul 13 2005 - 17:03:18 CDT
![]() |
![]() |