I have a timepicker div tag in my HTML as:
<input class="timepicker" name="timepicker" id="from-timepicker"/>
Corresponding Javascript code:
$('#from-timepicker').timepicker({
timeFormat: 'HH:mm',
minTime: new Date(0, 0, 0, 8, 0, 0),
maxTime: new Date(0, 0, 0, 15, 0, 0),
startHour: 6,
startTime: new Date(0, 0, 0, 8, 20, 0),
interval: 10
});
In the user interface, I see the time as:
0808:mm
I need it in 08:08 (hh:mm) format.
Any idea where I'm wrong?
source
share