Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

260
Views
Remove or hide a specific date in fullcalendar V5

I'm trying to remove or hide dates / days from fullcalendar V5 for example I have these dates: 2021-09-10 and 2021-09-12 what I am trying to do is not to show the dates or events on that day.

    document.addEventListener('DOMContentLoaded', function () {
    var calendarEl = document.getElementById('calendar');
    var MyDate = new Date(2021, 9, 10);

    var calendar = new FullCalendar.Calendar(calendarEl, {
        initialView: 'timeGridWeek',
        locale: 'es',
        headerToolbar: {
            right: "timeGridWeek,timeGridDay,listWeek",
            center: "title",
            left: "prev,next"
        },

        // No muestro los fines de semana
        weekends: false,
        hiddenDays: [0, 6],

        // Hora minima y maxima en la que se van a mostrar los eventos, con 30 minutos de separacion
        timeFormat: 'H:mm',
        axisFormat: 'HH:mm',
        slotMinTime: '11:00',
        slotMaxTime: '21:00',

        dayRender: function (cell) {
            MyDate.css("visibility", "hidden");
            cell.css("visibility", "hidden");
        },

       events: [
          {
            url: 'alltwo.php', // use the `url` property
            color: 'red',
          }
        ],

        eventSources: [
            {
                url: 'all.php', // use the `url` property
                color: '#1c97df',    // an option!
                textColor: 'whitesmoke',  // an option!
                eventColor: '#378006',
                // method: 'POST',
                dataType: 'json',
            }
        ],
    });

    calendar.render();
});

The code is the one I am trying to use but it would not be working.

Version FullCalendar 5.9.0

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!