DayPilot.Month.startDate

The startDate property (string | DayPilot.Date) sets the date range displayed by the Monthly calendar. Depending on the viewType value, the control shows the corresponding month when viewType="Month" or the configured number of weeks starting at startDate when viewType="Weeks".

A string value is converted to DayPilot.Date automatically.

Declaration

DayPilot.Month.startDate

Default Value

DayPilot.Date.today()

Examples

JavaScript

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

Angular

<daypilot-month [config]="config"></daypilot-month>
config: DayPilot.MonthConfig = {
  startDate: "2025-03-01",
  // ...
};

React

<DayPilotMonth
  startDate="2025-03-01"
  {/* ... */}
/>

Vue

<DayPilotMonth
  startDate="2025-03-01"
  <!-- ... -->
/>

See Also

DayPilot.Month.viewType

DayPilot.Date Class

DayPilot.Month Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript