You can set the default time via JavaScript:
$('mySelector').timepicker({defaultTime: '10:45 PM'});
Or directly through the value attribute of your timepicker:
<div class="bootstrap-timepicker"> <input id="timepicker" type="text" value="10:45 AM"/> </div> $('.myClass').timepicker({defaultTime: 'value'});
EDIT: was for the default timepicker parameter, my bad.
For your specific timepicker, it is possible to set the date-time as follows:
var picker = $('#datetimepicker').data('datetimepicker'); picker.setDate(myDate);
Veve
source share