Reputation: 103
I'm using this plugin https://tempusdominus.github.io/bootstrap-4/
to insert a datetimepicker. I would display time picker showing time in 24 hours (i.e not showing 02:00 PM but 14:00). There a way to perform this, with tempusdominus plugin. I follow the guide, but it still display time with AM and PM. Thanks.
Upvotes: 10
Views: 11539
Reputation: 159
I had the same problem and I changed the code to:
$('.datePicker').datetimepicker({
format: 'DD/MM/YYYY, HH:mm',
});
and it works now
Upvotes: 6