DayPilot.Gantt.startDate

The startDate property sets the visible range start in the JavaScript Gantt Chart. In addition to a DayPilot.Date object, it also accepts a string in ISO 8601 format such as "2028-01-01T00:00:00".

If not specified, the start date of the first task is used.

Declaration

DayPilot.Gantt.startDate

Possible Values

  • DayPilot.Date - visible range start as a DayPilot date object.

  • string - visible range start in ISO 8601 format.

  • null - uses the start date of the earliest task.

Default Value

null

Examples

JavaScript

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

Angular

<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
  startDate: "2028-01-01",
  // ...
};

React

<DayPilotGantt
  startDate="2028-01-01"
  {/* ... */}
/>

Vue

<DayPilotGantt
  startDate="2028-01-01"
  <!-- ... -->
/>

See Also

DayPilot.Gantt.days

DayPilot.Gantt Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript