Philipp Eger
Philipp Eger

Reputation: 2275

Formatting bootstrap timepicker

I am using bootstrap timepicker (http://jdewit.github.io/bootstrap-timepicker/) and want to format the default value this way: 00:00 but there is only one leading zero in my solution:

Timepicker without leading zero

Here is the code:

<div class="input-append bootstrap-timepicker">
    <input type="text" id="timepicker1" class="input-small bookingTextBox" />
</div>

Javascript:

$('#timepicker1').timepicker(
{
    minuteStep: 1,
    showMeridian: false,
    defaultTime: '00:00'
});

Is there a way to show 00:00 as default value?

Upvotes: 0

Views: 1747

Answers (1)

Sanjay Gohil
Sanjay Gohil

Reputation: 144

check on this link for help for you click here

try this

defaultTime : '00:00 AM'

Upvotes: 1

Related Questions