How to calculate starting date in week where week is known
Posted: Thu Feb 10, 2005 9:47 pm
Hi,
I have a little calendar application that I'm building and I have built in a nice little javascript forward and back button. I am able to calculate the week without a problem, but am having difficulty in changing the weekly data for that week.
My thinking is that if I can calculate the dates that are within that week, that might be the ticket. I'm not sure if that's the best way to go about it - but if anyone can provide insight on either:
1) the way to determine which dates are within a given week number in a particular year
or
2) a better way to calculate the dates moving forward or backward a week
it would be very much appreciated!!!
Thanks!
I have a little calendar application that I'm building and I have built in a nice little javascript forward and back button. I am able to calculate the week without a problem, but am having difficulty in changing the weekly data for that week.
My thinking is that if I can calculate the dates that are within that week, that might be the ticket. I'm not sure if that's the best way to go about it - but if anyone can provide insight on either:
1) the way to determine which dates are within a given week number in a particular year
or
2) a better way to calculate the dates moving forward or backward a week
it would be very much appreciated!!!
Thanks!