Closed kkrieger85 closed 3 years ago
Same for:
jQuery('#options_date').pickadate( {
disable:[
[2020,12,21],
[2020,12,22],
[2020,12,23],
[2020,12,24],
[2020,12,25],
[2020,12,26],
[2020,12,27],
[2020,12,28],
[2020,12,29],
[2020,12,30],
[2020,12,31],
[2021,1,1],
[2021,1,2],
[2021,1,3],
]
});
It seems, that "month" is not counted correctly:
"disable": "[6, 7,{ from: [2020,11,21], to: [2021,0,3]}]"
Disabling days works fine, but disabling exact dates needs to use Month -1 ==> december is 11, not 12
And "day" is count right: 21st => 21
My usage:
Same like in docs: https://amsul.ca/pickadate.js/date/#disable-dates-use-ranges
But the dates are not shown as disabled.
Any hint on how to solve this?