Tempus-dominus: Is it possible to only pick date

Created on 9 Feb 2015  路  5Comments  路  Source: Eonasdan/tempus-dominus

It's more a question then a issue.
Is it possible to only pick a date with this module?

Most helpful comment

Yes! format: 'L' works great. However, if using the other format: use uppercase DD, not lowercase dd. Lowercase will return an abbreviated day of the week such as th for Thursday. Thank you!

All 5 comments

I would also like to be able to pick only the date so I can use it to select a "date of birth" field, for example. An option like "pickTime: false" would be great. Then, the datetimepicker should only return the date format, without the time. Is there a way to do this now?

v4 use the function setting to determine what components to show. See the format example

To show only the date use format: 'MM/dd/YYYY or format: 'L'

Yes! format: 'L' works great. However, if using the other format: use uppercase DD, not lowercase dd. Lowercase will return an abbreviated day of the week such as th for Thursday. Thank you!

as mentioned in the docs... format takes a valid momentjs format string

Thank's it works for me

Was this page helpful?
0 / 5 - 0 ratings