I have requirement as follows I have two dates i need to find how may saturdays and sundays will come in between Date1: 02/06/2011 Date2: 02/07/2011 10 days are
Brute force: http://jsfiddle.net/mplungjan/vwNfU/