uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.66k stars 6.06k forks source link

Short date format (dd.mm.yy) missing day highlight #2624

Open membersound opened 3 years ago

membersound commented 3 years ago

https://jsfiddle.net/72rn3xu6/4/

If you use format: "dd.mm.yy", and input manually eg "24.12.22", then the date of the datepicker is not highlighted. If you then leave the input (so calendar ui hides), and come back clicking the input to show the ui, the day is still not highlighted.

In constrast, if you input "24.12.2022", then the correct day is highlighted. Which is strange because it contradicts the format. Then, if you tab out, the date is automatically shortened to "24.12.22" by datepicker, but keeps the correct day highlighted.

Very strange. Using latest version 1.9.0.