Search
Item.startTime Property
See Also
 






Gets or sets Item's scheduled start time.

Namespace: MindFusion.Scheduling
File: Item.js

 Syntax

JavaScript  Copy Code

get startTime() {}

 Property Value

A DateTime instance.

 Example

The following code creates 15 schedule Item-s and each one starts 2 minutes after the present date.

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