Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.tools -> Re: convert a week to a date?
Ai that's a tricky one. The trouble is that you can't use 'WW' as an input
date format.
You should try something like this (the constant is the input weeknumber):
declare
firstdayofyear date; firstdayofweek date; lastdayofweek date; firstweek number; tryweek constant number := 51;
Patrick Diks
pepijn wrote:
> Does anyone know how to convert a weeknumber to the first and last day of
> the week?
>
> e.g.
>
> input: week <n>
>
> output: week <n> starts on monday <date> and ends on sunday <date>
>
> thanks ahead,
>
> Pepijn
Received on Tue Jul 04 2000 - 00:00:00 CDT
![]() |
![]() |