I have Jquery input mask date that has format mm/dd/yyyy
. When I type 17
for a year I want to convert it to 2017
and that works good but I have the issue when I type 21
it converts to 201
not 2021
.
You can here see example: https://jsfiddle.net/u3em5bmr/1/