You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Behavior
Although it shouldn't, in the above context the maxDate limit allows to select the date of 25.01.2022, then it starts working as it should. On the contrary, when overrideDateFormat is removed and the values of the HTML element (input_date_label) and the maxDate option are changed to ISO standard (YYYY-MM-DD), the limit works properly.
Desktop:
OS: Kubuntu 20.04
Browser any
DateBox Details
Datebox Version: 5.3.3.
Framework w/ Version: Bootstrap 4.6
Mode of Operation: DateBox
jQuery: 3.6.0
The text was updated successfully, but these errors were encountered:
It might take me a couple days to get to actually testing this, but if memory serves, that maxDate has to be in ISO format still. I don't believe it uses the same parse logic that reading / writing the choosen date does, I think it's just a simple split on the dash.
Setting the value in the input box should respect the overrideDateFormat though.
But, I will spin up a test with this as soon as I have some time.
I have also tried with maxDate in ISO format and the overrideDateFormat in %d.%m.%Y format. Same behavior: it allows for one day past the limit, then it begins to work as intended.
Description
The maxDate option does not seem to work properly when using a overrideDateFormat.
HTML
Javascript
Behavior
Although it shouldn't, in the above context the maxDate limit allows to select the date of 25.01.2022, then it starts working as it should. On the contrary, when overrideDateFormat is removed and the values of the HTML element (input_date_label) and the maxDate option are changed to ISO standard (YYYY-MM-DD), the limit works properly.
Desktop:
DateBox Details
The text was updated successfully, but these errors were encountered: