DayPilot.Scheduler.eventEndSpec

Declaration

DayPilot.Scheduler.eventEndSpec

Possible values:

  • "DateTime"
  • "Date"

Default Value

"DateTime"

Description

Specifies how to interpret the event end date.

Default behavior

The end date will be interpreted as an exact time point.

dp.eventEndSpec = "DateTime"; // default
dp.events.list = [ { id: 1, start: "2015-01-01", // equals to "2015-01-01T00:00:00" end: "2015-01-02", // equals to "2015-01-01T00:00:00" resource: "A" } ];

End specified as Date only

dp.eventEndSpec = "Date";
dp.events.list = [
{
  id: 1,
  start: "2015-01-01", // equals to "2015-01-01T00:00:00"
  end: "2015-01-01",// equals to "2015-01-01T00:00:00", will be interpreted as "2015-01-02T00:00:00"
  resource: "A"
}
];

Main menu

DayPilot for JavaScript, ASP.NET WebForms, ASP.NET MVC, Java