Skip to content
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

Submit the value in RFC 3339 (yyyy-MM-dd) format #63

Open
TylerRick opened this issue Sep 26, 2018 · 3 comments
Open

Submit the value in RFC 3339 (yyyy-MM-dd) format #63

TylerRick opened this issue Sep 26, 2018 · 3 comments

Comments

@TylerRick
Copy link

It's problematic for it to just submit it using the locale format (MM/dd/yyyy where I live) since that is too ambiguous for the server to reliably parse.

Furthermore, I believe the HTML spec requires it to be submitted in RFC 3339, and that's what modern browsers do.

I tried out https://github.com/chemerisuk/better-dateinput-polyfill, which even claims this as a feature

submitted value always has yyyy-MM-dd [RFC 3339] format

but unfortunately had to abandon that since it didn't work in IE11 (chemerisuk/better-dateinput-polyfill#106).

@PadmapriyaVasudevan
Copy link

Hi TylerRick,
Am too facing the same issue like yours did you found any solution instead? And am using angular 4 reactive form in that am not able to bind the formControl Value.

@Paul-Soulier
Copy link

Hi,
Same issue here.
I'm dealing with the format server side, but it would be so much better if the submitted values where RFC 3339.

@jlindberg-oss
Copy link

Did anyone ever find a solution here? Facing same issue (also tried chemerisuk/better-dateinput-polyfill but it didn't seem to work reliably in Safari).

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

4 participants