Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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" />
like image 957
pratnala Avatar asked Dec 08 '22 21:12

pratnala


1 Answers

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

like image 88
Daniel Langemann Avatar answered Dec 27 '22 22:12

Daniel Langemann