Here\'s the given input from the user:
Year = 2011, Month = 3 (March), Week = 2
I want to get the days in week 2 of March 2011 in JavaScript.
e.g. Su
I normally use Datejs for date manipulations in js. I'd do it like this:
var firstDayOfWeek = new Date(year,month-1,1).moveToDayOfWeek(0,-1).addWeeks(week-1); var lastDayOfWeek = firstDayOfWeek.addDays(6);