Using 24 hour time in bootstrap timepicker
"YYYY-MM-DD HH:mm:ss" => 24 hours format;
"YYYY-MM-DD hh:mm:ss" => 12 hours format;
the difference is letter 'H'
$('.time-picker').timepicker({
showMeridian: false
});
This will work.
Use capitals letter for hours HH = 24 hour format an hh = 12 hour format
$('#fecha').datetimepicker({
format : 'DD/MM/YYYY HH:mm'
});
This works for me:
$(function () {
$('#datetimepicker5').datetimepicker({
use24hours: true,
format: 'HH:mm'
});
});
Important: It only worked at the point I used uppercase "H" as time format.