By default, the Scheduler works with exact time point for both the event start and end. A one-day event looks like this:

  • start: "2017-01-01T00:00:00"
  • end: "2017-01-02T00:00:00"

The same logic is used for time range selecting.

You can switch the Scheduler to treat the end date as date-only value using EventEndSpec property. With this EventEndSpec set to "Date" the end date will be interpreted as "the end of the specified day":

  • start: "2017-01-01T00:00:00"
  • end: "2017-01-01T00:00:00"

JavaScript

Example:

var dp = new DayPilot.Scheduler("dp");
dp.eventEndSpec = "Date";
dp.resources = [
  { name: "Resource 1", id: "R1" }
];
dp.events.list = [
  { text: "One-Day Event", id: "1", start: "2017-01-01", end: "2017-01-01", resource: "R1"}
]
dp.init();

See also:

ASP.NET WebForms

Example:

<DayPilot:DayPilotScheduler
  ...
  EventEndSpec="Date"
/>