83
rated 0 times
[
85]
[
2]
/ answers: 1 / hits: 18671
/ 7 Years ago, thu, may 18, 2017, 12:00:00
I am using the Bootstrap datatimepicker (https://eonasdan.github.io/bootstrap-datetimepicker/). It's great but it does not show or let the user select seconds.
$(document).ready(function () {
$('#datetimepicker1').datetimepicker({defaultDate: new Date()});
});
<div class='input-group date' id='datetimepicker1'>
<input type='text' class=form-control />
<span class=input-group-addon>
<span class=glyphicon glyphicon-calendar></span>
</span>
</div>
So how to select seconds as well? And how to get seconds to show in the format? Currently it's 05/18/2017 1:26 PM
, I want 05/18/2017 1:26:40 PM
In the dev guide, there is a fillSeconds()
function but I am not sure how to apply it here.
More From » jquery