DayPilot.Month.eventEndSpec

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

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: "2022-01-01", // equals to "2022-01-01T00:00:00" end: "2022-01-02", // equals to "2022-01-02T00:00:00" } ];

End specified as Date only

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