Search
Calendar.endDate Property
See Also
 






Gets or sets the end date of the calendar.

Namespace: MindFusion.Scheduling
File: Calendar.js

 Syntax

JavaScript  Copy Code

get endDate() {}
set endDate(value) {}

 Property Value

DateTime

The end date of the calendar.

 Example

The following code gets the beginning of the week, which contains the current calendar.date and adds 14 days to the endDate of the calendar:

JavaScript  Copy Code

var p = MindFusion.Scheduling;

// create a new instance of the calendar
calendar = new p.Calendar(document.getElementById("calendar"));
var startDate = p.DateTime.getWeekFirstDate(calendar.date);

calendar.endDate = p.DateTime.addDays(startDate, 14);

 See Also