Cleave.js: Custom date format; time support

Created on 18 Oct 2017  路  4Comments  路  Source: nosir/cleave.js

1) Now Cleave provides the only delimiter for date parts: slash (/). Another symbols are not supported yet?
For example: 18-10-2017?

2) What about time values support?

Most helpful comment

+1 for time options. We run a major listings website which requires inputs for opening hours of businesses. Please add this

All 4 comments

    1.
new Cleave('.my-input', {
    date: true,
    delimiter: '-',
    datePattern: ['d', 'm', 'Y']
});
  1. Unfortunately, time support is not in the plan.

Thanks

@nosir thank you for answer!

+1 for time options. We run a major listings website which requires inputs for opening hours of businesses. Please add this

Time supporting released, please check: https://github.com/nosir/cleave.js/issues/73#issuecomment-405003687

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gundlev picture gundlev  路  6Comments

periabyte picture periabyte  路  7Comments

drugoi picture drugoi  路  5Comments

mrozado picture mrozado  路  3Comments

vfonic picture vfonic  路  3Comments