Open aleksisg opened 4 years ago
If anyone else needs weekends to be disabled, this is the way I did it.
It doesn't actually disable them, but selects the next day if a Sunday is selected or two days time if a Saturday is selected. It isn't the slickest, but works...
v-on:date-one-selected="function(val) { if (new Date(val).getDay() == 6) {val = new Date(new Date(val).getTime()+(2*86400000))}; if (new Date(val).getDay() == 0) {val = new Date(new Date(val).getTime()+(1*86400000))}; }"
Is there a way of disabling the selecting of weekends without having to create a massive array of disabled dates?