amsul/pickadate.js

Disable date on month is not correct

puwadon-book opened this issue · 2 comments

Disable date month is +1
Example I set disable date on 2019-12-1 but pickadate is show disable date on 2020-1-1
i try to see in example code is same.

Sorry I'm not good at English

Hi @puwadon-book,

This is how Date in JavaScript works, the month is zero-indexed.

See the note at the top of https://amsul.ca/pickadate.js/date/