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