Search
DateTime.addDays Method (DateTime, Number)
See Also
 






Adds the specified number of days to the specified DateTime object.

Namespace: MindFusion.Scheduling
File: DateTime.js

 Syntax

JavaScript  Copy Code

function addDays (date, days)

 Parameters

date

DateTime. The DateTime instance to modify.

days

Number. The number of days to add.

 Return Value

DateTime. The modified DateTime instance.

 Example

The following code adds 10 days to the startDate of a calendar:

JavaScript  Copy Code
var p = MindFusion.Scheduling;

var startDate = p.DateTime.today();

var endDate = p.DateTime.addDays(startDate, 1);

 See Also