Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fullcalendar format of title of weekview

These days i'm working with the fullcalendar. I want to change the format of the date in the weekview. I found that many people succeeded with columnFormat: { month: 'ddd', week: 'ddd d/M', day: 'dddd d/M' }, but this one doesn't work for me. Maybe the raison is i used spanish as the language? Here is my code of calendar and what i want to do. Thank you.

    $('#calendar').fullCalendar({
        //defaultView: 'week',
        locale: "es",
        header: {
            left: 'prev,next today',
            center: 'title',
            right: 'month,agendaWeek,agendaDay'
        },
        //defaultDate: '2016-01-12',
        editable: true,
        eventLimit: true, // allow "more" link when too many events
        selectable: true,
        selectHelper: true,
        minTime: "09:30:00",
        maxTime: "19:30:00",
        slotLabelFormat: "h:mm",
        slotDuration: "00:30:00",
        slotLabelInterval: "00:30:00",
        //columnFormat: { month: "ddd", week: "ddd D", day: "dddd" },

        select: function(start, end) {

With this code, i got this one now:

enter image description here

And if i delete the '//' of line of columnFormat, it's like:

enter image description here

Can someone help me? Thank you.

like image 384
Minalinsky Avatar asked Sep 16 '25 08:09

Minalinsky


1 Answers

Use full calendar View-Specific Options

 views: {
  month: {
    columnFormat: 'dddd' // set format for month here
  },
  week: {
    columnFormat: 'ddd d/M' // set format for week here
  },
  day: {
    columnFormat: 'dddd' // set format for day here
  }
},

remove columnFormat from your code and set views config.

like image 125
Yogen Darji Avatar answered Sep 19 '25 05:09

Yogen Darji