Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 7 mobile Safari no longer supports <input type="datetime"/>

I have a rather large iPad application built using PhoneGap and I was doing some testing to make sure everything was going to work appropriately in iOS 7. The most significant issue I have found is that <input type="datetime"/> is no longer supported.

I have seen several posted suggesting you need to now have two separate fields for date and time. This is a really huge change because I am using this all over the application. I am hoping this is just something broken in the beta release of iOS 7 since it is an HTML 5 standard input type but I can't seem to find any information.

Any help or thoughts would be greatly appreciated.

like image 593
bstarr Avatar asked Aug 26 '13 13:08

bstarr


Video Answer


2 Answers

Support for datetime has been removed, but you can use datetime-local instead. From what I hear (can't say from whom) it's here to stay.

like image 175
thomasfuchs Avatar answered Oct 13 '22 00:10

thomasfuchs


It looks like this input type was removed in iOS 7

http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review

Following Google Chrome, now Safari on iOS doesn’t support the datetime input type anymore and it will fallback to text. This type was deprecated in the standard in favor of using two inputs, date and time for the same purpose. The problem is that datetime was compatible with iOS from version 5.0 to 6.1; if you are using it, be careful!

like image 35
ColinE Avatar answered Oct 13 '22 00:10

ColinE