Disable Weekday from Datepicker JS
How to disabled Friday, Saturday, or Sunday from Datepicker JS. A Simple Script
This is a snippet to disable Friday, Saturday, and Sunday on the JS Datepicker.
<script>
jQuery(document).ready(function($){
jQuery("#datepicker2").datepicker({
minDate: new Date(),
dateFormat: 'dd-mm-yy',
beforeShowDay: function(date) {
var show = true;
if(date.getDay()==6||date.getDay()==0||date.getDay()==5) show=false
return [show];
}
});
});
</script>