FullCalendar时间轴视图中的日期格式

时间:2019-12-20 15:36:48

标签: fullcalendar fullcalendar-scheduler fullcalendar-4

我正在尝试在“时间轴”视图中配置FullCalendar 4.3.1,以在标题和列标题中以UK格式显示日期。我使用如下的slotLabelFormat和titleFormat:

slotLabelFormat: [
  { day: 'numeric', weekday: 'short', month: 'short'},
  { hour: 'numeric' }
],
titleFormat: {day: 'numeric', month: 'long', year: 'numeric'}

这有效,但是,它没有选择项目的顺序,因此我以12月31日而不是12月31日星期一结束。是否可以设置顺序或默认日期格式(基于位置)?我在文档中找不到它。

1 个答案:

答案 0 :(得分:0)

将以下内容添加到日历参数即可解决该问题。谢谢大家。

语言环境:“ en-gb”