How to get the date range from the week number
Posted on 2009-12-29
I am using a 3rd party php calendar to allow the user to pick a single date. I am then storing the week number for that date in the database (using $theDate=strtotime($testDate); $week=date("W",$theDate);). On a separate page, I would like to do a lookup in the database to get the week number, then from that number display the start and end date for the week (week starting on Sunday). I know how to get a week number from a date, but can someone please show me how I can get the date range from the week number?