Skip to content
Advertisement

Disable Weekends on ng2-date-picker

I am looking for a function that can disable weekends on my datepicker. I know that I can use isDayDisabledCallback to disable dates but how can I only disable weekends.

JavaScript

Advertisement

Answer

In the configuration you can set the callback isDayDisabledCallback like that for exclude Saturday and Sunday.

JavaScript
Advertisement