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






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

Namespace: MindFusion.Scheduling
File: DateTime.js

 Syntax

JavaScript  Copy Code

function addYears (date, years)

 Parameters

date

DateTime. The DateTime instance to modify.

years

Number. The number of years to add.

 Return Value

DateTime. The modified DateTime instance.

 See Also