3 ms·
One issue: when you change the input type from "date" to "text", you lose the common backend format that date input fields are supposed to have. With a normal d
by peterjmag 14y ago
One issue: when you change the input type from "date" to "text", you lose the common backend format that date input fields are supposed to have. With a normal date input element, input.value returns a date in the format "yyyy-mm-dd" regardless of the display format (in Chrome, at least), and the submitted POST/GET variables reflect the same format. With your date picker, I get values like "31+October%2C+2012". Is there any way to modify your library to mimic the former behavior? Otherwise, you might want to note in your docs that this date picker might require tweaking your server side form processing code.
Here's an article describing the behavior in Chrome: http://updates.html5rocks.com/2012/08/Quick-FAQs-on-input-type-date-in-Google-Chrome http://updates.html5rocks.com/2012/08/Quick-FAQs-on-input-ty.... That behavior's in line with the current spec: http://dev.w3.org/html5/spec/forms.html#input-author-notes http://dev.w3.org/html5/spec/forms.html#input-author-notes.
EDIT: I just realized that the OP might not be the author, so I'll just add an issue on GitHub.