Adds the specified number of days to the specified DateTime object.
Namespace: MindFusion.Scheduling
File: DateTime.js
JavaScript Copy Code |
---|
function addDays (date, days) |
DateTime. The DateTime instance to modify.
Number. The number of days to add.
DateTime. The modified DateTime instance.
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); |
JavaScript Pack Programmer's Guide | © 2024 MindFusion |