FullCalendar one day before specified

-3

When I put a start and end date, then it is placed one day before, for example: 2017-12-01 to 2017-12-03 one day before 2017-12-02 I am using moment.js and this is the format I have

moment(start).format('YYYY-MM-DD')
    
asked by Arnel Cariaga Jr. 04.12.2017 в 20:52
source

1 answer

0

Full Calendar uses the 'start' and 'end' properties of the events to establish the time they will occupy over time.

The date and time that you will color in the property 'end' is not inclusive.

events: [
  {
    title : "Mi evento",
    start : "2017-12-12 00:00:00",
    end   : "2017-12-13 00:00:00"
  }
]

This event will be shown exclusively on December 12th. So that it could also be deployed throughout day 13 you would have to:

events: [
  {
    title : "Mi evento",
    start : "2017-12-12 00:00:00",
    end   : "2017-12-14 00:00:00"  //aumentar un día a la fecha
  }
]

The second event is shown on December 12 and 13 because the value of the 'end' property of "2017-12-14 00:00:00" (which corresponds to December 14), is not inclusive.

On the other hand, Full Calendar is terrific. After searching and searching, I would not change it for another option. I recommend that you stick to the examples included in the download. Ask them how they look and then watch the code. It is very friendly.

    
answered by 10.12.2017 в 03:56