Hi im using http://eonasdan.github.io/bootstrap-datetimepicker/ on bootstrap, specifically example number 4.
I added this property to take away the PM thing and be a
Use capitals letter for hours HH = 24 hour format an hh = 12 hour format
$('#fecha').datetimepicker({
format : 'DD/MM/YYYY HH:mm'
});
It looks like you have to set the option for the format with data-date-*. This example works for me with 24h support.
<div class="form-group">
<div class="input-group date timepicker"
data-date-format="HH:mm"
data-date-useseconds="false"
data-date-pickDate="false">
<input type="text" name="" />
<div class="input-group-addon">
<i class="fa fa-clock-o"></i>
</div>
</div>
</div>
$('.time-picker').timepicker({
showMeridian: false
});
This will work.
It looks like you have to set the option for the format with data-date-*. This example works for me with 24h support.
EDIT: There are much better answers on this thread than this one. I was just getting the hang of JavaScript at the time I answered. Specifically, see these two.
If you search within the development version of that script, there's a function called use24hours
that looks for a value of either true or false.
Adding use24hours:true
might do the job for you. Like so:
$(function () {
$('#datetimepicker5').datetimepicker({
use24hours: true
});
});
<script>
$(function () {
/* setting time */
$("#timepicker").datetimepicker({
format : "HH:mm:ss"
});
}
</script>
Example bootstrap datetimepicker eonasdan