nodep-date-input-polyfill
nodep-date-input-polyfill copied to clipboard
Submit the value in RFC 3339 (yyyy-MM-dd) format
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 (https://github.com/chemerisuk/better-dateinput-polyfill/issues/106).
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.
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.
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).