DayPilot.Scheduler.eventEndSpec

The eventEndSpec property determines how the Scheduler will interpret the event end date (exact point in time or date-only).

See also Event End Date/Time.

Values

Possible values:

  • "DateTime"

  • "Date"

Default Value

"DateTime"

Description

Default behavior

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

dp.eventEndSpec = "DateTime"; // default

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

End specified as Date only

dp.eventEndSpec = "Date";

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