qodesmith / datepicker

Get a date with JavaScript! A datepicker with no dependencies.
344 stars 101 forks source link

Set startDay:1 and noWeekends: true will disable monday and sunday #107

Closed AureliusSlawinski closed 3 years ago

AureliusSlawinski commented 4 years ago

If setting these options:

startDay:1 noWeekends: true

Will disable monday and sunday (instead of saturday and sunday).

grafik

axelschelfhout commented 4 years ago

I have the same issue. For now I "solved" it with disabler: date => date.getDay() === 6 || date.getDay() === 0, // Disable weekends

qodesmith commented 3 years ago

Sorry for the delay, looking into this now...

qodesmith commented 3 years ago

Fixed!