Search
Item.endTime Property
See Also
 






Gets or sets Item's scheduled end time.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get endTime() {}

 Property Value

DateTime. A DateTime instance that identifies the end time.

 Example

The following code creates 15 schedule items and each one ends 2 hours after the item has sterted.

JavaScript  Copy Code

var p = MindFusion.Scheduling;
…..

var item;
var date = p.DateTime.today();

// add some items to the schedule items collection
for (var i = 0; i < 15; i++)
{
 item = new p.Item();
  item.startTime = p.DateTime.addMinutes(date, 2);
 item.endTime = p.DateTime.addHours(item.startTime, 2);
 item.subject = "Yoga";

 calendar.schedule.items.add(item);
}

 See Also