pratnala pratnala - 8 months ago 59
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" />


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: