How to create a timeslot from 9am to the next day at 9am

46 Views Asked by At

I am using fullCalendar. Right now I have only single day time slot avalible for example 0 to 24hrs.

Instead I want a custom time slot of 24 hours if possible, for example today 9am to the next day at 9am.

1

There are 1 best solutions below

4
ADyson On

Assuming you are using the Resource Timeline view, you can do it like this, for example:

initialView: "resourceTimelineWeek",
slotDuration: { hours: 24 },
slotMinTime: "09:00",

Live demo: https://codepen.io/ADyson82/pen/yLGJvwa