'Inputmask problem when change year in format yyyy-mm-dd

For example, I have in input date 2004-11-12 and I want to change in a year from 4 to 5 but instead of 2005-11-12 I get 2005-mm-dd, how to prevent this?

{
        "alias": 'datetime',
        "placeholder": "",
        "inputFormat": 'yyyy-mm-dd',
        "min": '1950-01-01',
        "max": '1999-12-31',
        "clearIncomplete": true,
}


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source