The example below shows how to treat all Sundays as not valid date. You can try to choose a Sunday from the picker to see how it works in action.
Integrating with Bootstrap Datepicker
Integrating with flatpickr
Supporting custom date format
Validating date range
Validating multiple inputs as one