DayPilot.Calendar.startDate

The startDate property (string | DayPilot.Date) sets the date displayed by the JavaScript Calendar component.

Depending on the viewType value, this property sets the first visible date ("Day", "Days" modes) or is used to calculate the visible period ("Week", "WorkWeek").

In the resource calendar view, this value is used as the default value for columns that don’t have their own start value defined.

A string value is converted to DayPilot.Date automatically.

Default Value

DayPilot.Date.today();

See Also

Example

const calendar = new DayPilot.Calendar("calendar", {
  startDate: "2025-03-01",
  // ...
});
calendar.init();