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
根据moment.js文档,您可以使用'DD / MM / YYYY h:mm:ss a'
Try 'DD/MM/YYYY hh:mm a' instead, or '...A' for capital AM/PM.
Try this:
format: "DD/MM/YYYY HH:mm P",
showMeridian: true
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.