Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Getting the first day of a calendar week (Date Format)
Tom Talberg wrote:
>
> Hi everybody,
>
> i have a table-column which stores the calendar week and the year. Its a
> number(4) field, 2 digits for the week and 2 for the year. What i want to do
> is to transfer this data into another tables column (type date). But Oracle
> 8.0.5 doesn't accept dates only containing the week and the year. Therefore
> i search for a way to determine the first day of the week to store the date
> of the first day of the week in the new table.
>
> Thanks in advance for any hints or solutions.
>
> Robert
One of the format masks (I think IW) is the week number of the year which will allow you do to the conversion you are after just using the normal to_date, to_char
HTH
--
"Some days you're the pigeon, and some days you're the statue." Received on Tue Dec 14 1999 - 08:06:07 CST
![]() |
![]() |