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.startDateDefault 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
Availability
Availability of this API item in DayPilot editions:
| Product | Lite | Pro |
|---|---|---|
| DayPilot for JavaScript |
DayPilot