m z
Posts: 0
Joined: Sat Nov 02, 2013 1:39 am

Defaulting input box with datetime-local format.

How does one default the input box (with datetime-local format) to the current date and time?

Once the input box is updated by the user, how is the date parsed from the value? How is the time parsed (in local time zone)?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Defaulting input box with datetime-local format.

Hello! The one you get is just a string, you can parse it the way you want. Here is more information http://dev.w3.org/html5/markup/input....
http://dev.w3.org/html5/markup/dataty.... Please note not all browsers/devices supports different Input types.

Return to “Issues”