Reputation: 755
I am using bootstrap date time picker. my problem is my code isnt able to fetch Am/Pm. I have tried:
$('#datetimepicker6').datetimepicker({
sideBySide: true,
format: 'DD/MM/YYYY hh:mm tt'
});
bUt this is only giving me, time as, 09:23 tt. it is showing tt in place of am and pm.
please help
Upvotes: 2
Views: 223
Reputation: 1724
Try 'DD/MM/YYYY hh:mm a' instead, or '...A' for capital AM/PM.
http://momentjs.com/docs/#/displaying/
Upvotes: 3