How to define hour like 24:00 and don't change to 00:00

925 Views Asked by At

I'm trying to input a time with inputmask (https://github.com/RobinHerbots/Inputmask) but did not succeed.

In this link: https://github.com/RobinHerbots/Inputmask/issues/1786 he say that it take define inputformat like HHH but still yet i don't got it.

Datetime: https://github.com/RobinHerbots/Inputmask/blob/4.x/README_date.md

(Don't work) Code example with HHH: https://jsfiddle.net/vy1jwuwn/21/

Inputmask("datetime", {
    inputFormat: "HHH:MM",
    max: 24
}).mask("input");

(Work until 23:59) Code example with HH: https://jsfiddle.net/n3sgqeLb/1/

Inputmask("datetime", {
    inputFormat: "HH:MM",
    max: 24
}).mask("input");
0

There are 0 best solutions below