Page 1 of 1

Defaulting input box with datetime-local format.

Posted: Mon Jan 13, 2014 6:55 am
by m z

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)?


Defaulting input box with datetime-local format.

Posted: Mon Jan 13, 2014 9:06 am
by Maryna Brodina

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.