I have been trying to get the datetimepicker of bootstrap v4.17.47 working to no avail. When I set the format
, I get only a 24 hour and minute, I can't seem to get a 12 hour time to work.
Is there something else that needs to be setup? I'm sing bootstrap v3.3.2, and jQuery v2.2.3.
<div class="form-group">
<div class='input-group date' id='TheTime'>
<input type='text' class="form-control" />
<span class="input-group-addon"><span class="glyphicon glyphicon-time"></span>
</span>
</div>
</div>
Below the JavaScript I set, but I don't get a popup that is 12 hours. With the below set, I get a popup that goes to 24 hours, but what appears in the time text box, is for example: pop-up says 21:00
, but the text box shows 9:00 tt
.
<script type="text/javascript">
$(document).ready(function ($) {
$('#TheTime').datetimepicker({
format: 'hh:mm tt'
});
});
</script>