[英]How to display only one AM and PM time in Full calendar js
I know that time format issue has been already discussed.我知道已经讨论了时间格式问题。 But stills i can't solve my problem.但仍然无法解决我的问题。 My requirement looks like我的要求看起来像
Here I want to display all AM interval in a single AM and all PM time in a single PM .在这里,我想显示在一个单一的AM所有AM间隔和在一个单一的PM所有PM时间。
Here is my code这是我的代码
$(document).ready(function() {
$("#calendar").fullCalendar({
header: {
left: "prev,next today",
center: "title",
right: "month,agendaWeek,agendaDay"
},
defaultView: "agendaWeek",
navLinks: true, // can click day/week names to navigate views
selectable: true,
selectHelper: true,
editable: true,
eventLimit: true, // allow "more" link when too many events
format: 'DD/MM/YYYY',
});
}); });
replace format with this two line用这两行替换格式
timeFormat: "H:mm",
slotLabelFormat: "HH:mm",
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.