1

Are the new HTML5 input types date, time and datetime currently broken in Google Chrome with regard to default value?

I am setting a pre-defined value in three HTML5 input fields, one of type two of type time. Rendering of the fields with default values doesn't seem to be supported at all in neither Android nor iOS. Tested with Safari on iPad, Chrome on Android, Chrome on PC and Firefox on PC. All running the latest versions.

This is the HTML markup:

HTML markup

This is the rendered HTML in Google Chrome:

Result in Chrome

This is the rendered HTML in Firefox:

Result in Firefox

Maritim
  • 2,111
  • 4
  • 29
  • 59
  • please see: http://stackoverflow.com/questions/21263515/why-is-html5-input-type-datetime-removed-from-browsers-already-supporting-it/21291028#21291028 – Daniel Feb 03 '14 at 19:00

1 Answers1

1

You are using a datetime value in both your type="date" and type="time" inputs. Try using the right value e.g.

<input type="date" value="2014-03-02">
<input type="time" value="00:00:00">

The second problem is, that you are using german date format instead of an i18n format (see the example above, 2014-03-02 instead of 03.02.2014).

chrona
  • 1,853
  • 14
  • 24