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.
DayPilot.Gantt.startDateDayPilot.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.
nullJavaScript
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"
<!-- ... -->
/>