So, I'm running into this issue and maybe I'm just not thinking straight, but examples of how sites have handled this would help.
I want to use the HTML5 date input - it's nice and smooth. However, I need that date to get eventually put in as a date field in a mysql database. The issue is not with the post value from HTML5 date input - but rather when it's reverting back to text on older browsers.
If I say "Please format YYYY-MM-DD" by my input (this will be a highly public application visited from many browsers), then when using Chrome which is showing the date picker, Chrome auto formats to MM/DD/YYYY for the displayed date and I hear that is localized to the user.
Question is this: How to put a "Please format YYYY-MM-DD" label which will only show up when it has reverted to a text box? If I specify to the end user that they need to format it one way, and the date picker only allows them to do it a different way, won't that be hopelessly confusing? I anticipate this form being used from multiple locales so I can't anticipate the default formatting.
Please note this is a front end question; I understand how to take the POST values, but need the POST values of the backwards compatible text boxes to be uniform.