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.
DayPilot.Month.startDateDayPilot.Date.today()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"
<!-- ... -->
/>