iOS5 Safari now supports type="datetime" in form inputs and displays the native iOS datetime picker when a field marked as such is edited.
However, the iOS5 datetime picker does not seem to recognize existing values in these fields — or, I’m passing a value to it in the wrong format. The format I’m trying is that shown on the picker. The HTML renders as ... type="datetime" value="Nov 17, 2011 5:08 PM" ...
How do I get iOS5 Safari to recognize preexisting values in these fields and prepopulate the datetime picker when I edit a form with an existing value? Do I need to send a different format?
The format is YYYY-MM-DDThh:mm:ssTZD
http://www.w3schools.com/html5/att_time_datetime.asp
A correct example is 2012-05-18T00:01:02+03:00