pratnala pratnala - 4 months ago 27
HTML Question

Is there a native HTML date time picker with seconds?

Is there any way to include seconds in the HTML date time picker?

<input type="datetime-local" />

Answer

Looks like this has an answer here, using the "step" property: Show seconds on input type=date-local in Chrome

Setting step=1 will display seconds on the picker:

<input type=datetime-local step=1>

Some doc for the step can be found here: http://www.w3schools.com/jsref/prop_datetime-local_step.asp