75049

Recurring Overnight Events in FullCalendar

Question:

I am using the FullCalendar plugin for JQuery, and I am trying to create a recurring event that spans multiple days. In this instance I want a recurring event that starts at 10am Monday and ends at 3am Tuesday.

I have researched how to do recurring events, <a href="https://stackoverflow.com/questions/15161654/recurring-events-in-fullcalendar" rel="nofollow">such as this</a>, but I can't seem to get it to work across multiple days.

For example, creating a recurring event on the same day like this works fine:

{ start: '10:00', end: '15:00', dow: [1] }

However, trying to span the event overnight doesn't work ( I mean Monday 10:00 to Tuesday 03:00 ):

{ start: '10:00', end: '03:00', dow: [1] }

It just seems to create a 2-hour event.

Is it possible to do what I want? And if so, how?

<a href="https://i.stack.imgur.com/piPen.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/piPen.png" data-original="https://i.stack.imgur.com/piPen.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Answer1:

The answer I gave on the page you linked (<a href="https://stackoverflow.com/a/29393128/728393" rel="nofollow">here</a>) should work. You just need to use the right times.

This won't work

{ start: '10:00', //starts at 10 on monday end: '03:00', //ends at 3 on monday? gets ignored dow: [1] }

Instead:

{ start: '10:00', //starts at 10 on monday end: '27:00', //24+3 is handled correctly. dow: [1] }

<a href="http://jsfiddle.net/slicedtoad/duu0dx2t/102/" rel="nofollow">JSFiddle Demo</a>

Recommend

  • Span rows of a table with mousedown and drag in jquery?
  • LINQ to Entities does not recognize the method
  • How many people are registering in the day of the week
  • PHP create range of dates
  • Full calendar business hour constrain on day click event
  • XNA MediaPlayer fastforward/rewind
  • Drupal: create a node with employee working hours
  • Dependency Injection - Choose DLL and class implementation at runtime through configuration file
  • Name of day in string format with days to furure
  • Add a div to replace Video after Video Plays Through
  • overlapping appointments using the entity framework
  • Redis under Classic ASP(VBScript)
  • Getting IIS6 to play nice with WordPress Pretty Permalinks
  • hibernate sets dirty flag (and issues update) even though client did not change value
  • How to access culture data in globalize.js V1.0.0
  • Can someone please explain to me in the most layman terms how to use EventArgs?
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • how to display data from 1st point on words on y axis for line chart in d3.js
  • Row Count Is Returning the incorrect number using RaptureXML
  • Exception “firebase.functions() takes … no argument …” when specifying a region for a Cloud Function
  • Python CGI os.system causing malformed header
  • Highlight one bar in a series in highcharts?
  • Initializer list vs. initialization method
  • Control modification in presentation layer
  • Sails.js/waterline: Executing waterline queries in toJSON function of a model?
  • Fetching methods from BroadcastReceiver to update UI
  • Controls, properties, events and timers running in design time
  • WinForms: two way TextBox problem
  • jQuery tmpl and DataLink beta
  • Jquery - Jquery Wysiwyg return html as a string
  • R: gsub and capture
  • Calling of Constructors in a Java
  • Confusion with PayPal's monthly billing cycle
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • Comma separated Values
  • PHP: When would you need the self:: keyword?
  • How to disable jQuery.jplayer autoplay?
  • CSS Applying specific rule for a specific monitor resolution with only CSS is posible?
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • How to load view controller without button in storyboard?