I wonder if there is a simple solution to activate some faction days in the pikaday datepicker.
I blocked all Tuesdays Wednesdays, Thursdays and Sundays with date.getDate. However, I do not want to block 5 vacation days if they fall on Tues, Wed, Thurs or Sundays, they will also be blocked. Can I include an exception in the javascript?
I understand that with jquery and moment there is a solution just like creating an array in php and removing these dates and then presenting them. With that, the advantage of a date picker of only 5k is gone.
I like php but javascript is not my thing.
Does anyone see a solution ?
disableDayFn: function (date) {
return date.getDay() === 0 || date.getDay() === 2 || date.getDay() === 3 || date.getDay() === 4 ;
}