Search
DateTime.yearsBetween Method
See Also
 






Returns the number of years between two DateTime instances.

Namespace: MindFusion.Scheduling
File: DateTime.js

 Syntax

JavaScript  Copy Code

function yearsBetween (date1, date2)

 Parameters

date1

DateTime. The first DateTime instance.

date2

DateTime. The second DateTime instance.

 Return Value

Number. The number of years.

 See Also