Possible Duplicate:
Can the jQuery UI Datepicker be made to disable Saturdays and Sundays (and holidays)?
So far I have it shows number of estimated delivery days but I want to exclude weekends and holidays from calculation. Any ideas?
<script>
$(function () {
$("#datepicker").datepicker({
onSelect: function () {
var start = $('#datepicker').val();
var date = new Date(start);
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var myday = new Date(y, m, d + 10);
$('#showdate').val($.datepicker.formatDate('mm/dd/yy', myday));
}
});
});
</script>