Disable Saturday and Sundays in Datepicker

If you want to disable the weekend day from date picker you have following ways
1) For jQueryUI DatePicker, it has an option to disable weekends day which you can use to explicitly not allow Weekends to be selected :


$(".datepicker").datepicker({ 
   beforeShowDay: $.datepicker.noWeekends
 });

2) Hide Saturday Sunday


/* Hide saturday/sunday in the jQueryUI DatePicker */
th.ui-datepicker-week-end,
td.ui-datepicker-week-end {
    display: none;
}

On: 04-15-2020