Reputation: 641
I am trying to configure FullCalendar 4.3.1 in Timeline view to display date in UK format in the title and on column headers. I use slotLabelFormat and titleFormat as below:
slotLabelFormat: [
{ day: 'numeric', weekday: 'short', month: 'short'},
{ hour: 'numeric' }
],
titleFormat: {day: 'numeric', month: 'long', year: 'numeric'}
This works, however, it does not choose the order of items so I end up with Mon Dec 31 instead of Mon 31 Dec. Is there a way to set the order or default date format (based on location)? I can't find it in the docs.
Upvotes: 2
Views: 1698
Reputation: 641
Adding the below to calendar parameters resolved it. Thanks all.
locale: 'en-gb'
Upvotes: 1