Cleave.js: Date formatting allows zeros in months and days

Created on 14 Jul 2016  路  3Comments  路  Source: nosir/cleave.js

I don't know if a year can be 0000 but I think neigher a month or a day should be allowed to be 00.

When you type 99 for a month cleave.js automatically change it to 12 when is a month; so I suggest change to 01 when it is 0.

Also (as enhancement) would be cool if this lib change the max day allowed based on the month and the year of the input.

bug resolved

All 3 comments

Good one, will be fixed very soon.

FYI, I'm on it.

Published, thanks guys.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fcoms picture fcoms  路  3Comments

CaptainYarb picture CaptainYarb  路  3Comments

mrozado picture mrozado  路  3Comments

Scit picture Scit  路  4Comments

YanikCeulemans picture YanikCeulemans  路  3Comments