How do I make jQuery UI datepicker exclude weekends and also set minDate
to a certain value like +2 / +3 (excluding weekends) ???
What I've tried:
$("#txtFromDate").datepicker({
minDate: 4,
beforeShowDay: $.datepicker.noWeekends,
changeMonth: true,
changeYear: true
});
<input type="text" id="txtFromDate" />
For example When I select a Monday (like today 10th) and give 'minDate' as 10 , from 24th onwards should be enabled.
Can anyone please help me out? I want to be able to calculate the minDate
value without including Saturdays and Sundays.
FIDDLE- http://jsfiddle.net/betrob/7DHVr/2/
Thank you