DayPilot.Scheduler.startDate

The startDate property (DayPilot.Date | string) sets the beginning of the range displayed by the JavaScript Scheduler component.

In addition to a DayPilot.Date object, it also accepts a string in ISO 8601 format such as "2026-01-01T00:00:00".

Declaration

DayPilot.Scheduler.startDate

Default Value

DayPilot.Date.today()

Examples

JavaScript

Using a DayPilot.Date object:

const dp = new DayPilot.Scheduler("dp", {
  startDate: DayPilot.Date.today().addDays(5),
  // ...
});
dp.init();

Using a date string:

const dp = new DayPilot.Scheduler("dp", {
  startDate: "2026-01-01",
  // ...
});
dp.init();

Using a date/time string:

const dp = new DayPilot.Scheduler("dp", {
  startDate: "2026-01-01T00:00:00",
  // ...
});
dp.init();

Angular

<daypilot-scheduler [config]="config"></daypilot-scheduler>
config: DayPilot.SchedulerConfig = {
  startDate: "2026-01-01",
  // ...
};

React

<DayPilotScheduler
  startDate="2026-01-01"
  {/* ... */}
/>

Vue

<DayPilotScheduler
  startDate="2026-01-01"
  <!-- ... -->
/>

See Also

DayPilot.Scheduler.days

DayPilot.Scheduler Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript