problem to get dates based on year and weeknumber
Hello,
on my form i have two selectionlists, one with year selection and another
with weeknumber selection.
Next i have a table like this
day date val
-----------------------------------
monday xxx 1 day worked
tuesday xxx 0.5 day worked
wednesday xxx 0 day worked
thursday
friday
saturday
sunday
------------------------------------
total for week x 2.5 day(s) worked
is there a javascript function that can return me an array with the dates from a chosen
week for a chosen year? (eventualy date formated dd-MM-yyyy)
I have already the ValY(year value) and ValW(weeknumber value).
the array returned should be like [04-08-2008,05-08-2008,06-08-2008,07-08-2008,
08-08-2008,09-08-2008,10-08-2008] where 04-08-2008 is monday and 10-08-2008 sunday.
If anybody could give me some pointers or a link on the web how i can create this function.
Many thanks in advance.
V.
|