nodep-date-input-polyfill icon indicating copy to clipboard operation
nodep-date-input-polyfill copied to clipboard

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

Open TylerRick opened this issue 6 years ago • 3 comments

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).

TylerRick avatar Sep 26 '18 19:09 TylerRick

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.

PadmapriyaVasudevan avatar Nov 16 '18 10:11 PadmapriyaVasudevan

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.

Paul-Soulier avatar Jan 08 '19 16:01 Paul-Soulier

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).

jlindberg-oss avatar Aug 09 '20 22:08 jlindberg-oss