I am trying to make a datepicker that sets a maxDate of 2 business days. Right now I am using the following:
$(document).ready(function() {
$('#intnewDate').datepicker({
beforeShowDay: $.datepicker.noWeekends,
inline: true,
dateFormat: "mm/dd/yy",
changeFirstDay: false,
maxDate: 2
});
});
I am disabling weekends with $.datepicker.noWeekends, but when using maxDate: 2 it counts the days on the weekends. Anyone know a good way to ONLY count business days when using maxDate?
I have a fiddle here: http://jsfiddle.net/nsP3L/3/