Skip to content

Can you set the default value for a "date" input? #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
robbieallen opened this issue Nov 24, 2020 · 2 comments
Closed

Can you set the default value for a "date" input? #15

robbieallen opened this issue Nov 24, 2020 · 2 comments

Comments

@robbieallen
Copy link

It doesn't seem to use the value attribute and defaults to "mm/dd/yyyy" no matter what.

@iksaku
Copy link

iksaku commented Nov 25, 2020

This plugin doesn't provide any default value nor value modification for your inputs. Only styling is done.

In order to set a default value to your input element, please refer to MDN's documentation on date inputs.

@robbieallen
Copy link
Author

I see now. It wanted the value attribute in the format of YYYY-mm-dd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants