Wondering if anyone has a solution for checking if a weekend exist between two dates and its range.
var date1 = \'Apr 10, 2014\'; var date2 = \'Apr 14, 2014\
Use Date.getDay() to tell if it is a weekend.
if(tempDate.getDay()==6 || tempDate.getDay()==0)
Check this working sample:
http://jsfiddle.net/danyu/EKP6H/2/
This will list out all weekends in date span. Modify it to adapt to requirements. Good luck.