Following is the code that I am using to calculate the week start date and end date for the given month.
Assume week start day is MONDAY and week end day is SUNDAY.
For exa
A possible solution may be to not reinvent the wheel and use JodaTime or a similar library. For instance, you can use the dayOfWeek() function on a DateTime to get the information you're after.