Format column header dates in FullCalendar

前端 未结 1 1028
别那么骄傲
别那么骄傲 2021-01-20 04:04

I\'ve been trying to change the format of the dates that appear in the day column headers on the Fullcalendar week/timegrid view:

I\'m using V5 in conjuctio

相关标签:
1条回答
  • 2021-01-20 04:41
    dayHeaderContent: (args) => {
        return moment(args.date).format('ffffd Do')
    }
    

    The new function supplies args instead of date object. So you access them with args.date and then format using moment

    0 讨论(0)
提交回复
热议问题