Adds the specified number of days to the current DateTime object.
Namespace: MindFusion.Scheduling
Assembly: DateTime.js
SyntaxJavaScript
Copy Code
|
|---|
function addDays (days) |
Number. The number of days to add.
ExampleThe following code creates a new task that lasts two hours:
JavaScript
Copy Code
|
|---|
var date = p.DateTime.today(); // create a new item |
See Also