amsul / pickadate.js

The mobile-friendly, responsive, and lightweight jQuery date & time input picker.
http://amsul.ca/pickadate.js
MIT License
7.7k stars 1.02k forks source link

Disable date on month is not correct #1199

Closed puwadon-book closed 4 years ago

puwadon-book commented 4 years ago

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

DanielRuf commented 4 years ago

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/

DanielRuf commented 4 years ago

https://codepen.io/DanielRuf/pen/povgKvN?editors=1111