Cleave.js: Is it possible to have AM/PM in timeFormat?

Created on 22 Feb 2019  路  3Comments  路  Source: nosir/cleave.js

I have a single input field where user can type in the time (hh:mm) and AM/PM. Would this be possible with this library?

Thanks!

All 3 comments

Unfortunately, AM / PM is not supported, this is a bit hard to predict and format.
Closing this, cheers 馃憤

@nosir isn't this a bit counter intuitive? It looks like you do support timeFormat which when set to 12 limits the time input to 0-12 hours. If you'd select this format option how would you distinguish 8am from 8pm?
Thanks, Daniel

I think this case, I'd put a selector to let user choose AM / PM :p

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yardz picture yardz  路  6Comments

periabyte picture periabyte  路  7Comments

gundlev picture gundlev  路  6Comments

Scit picture Scit  路  4Comments

ArtyomBist picture ArtyomBist  路  6Comments