Search
DateTime.monthsBetween Method
See Also
 






Returns the number of months between two DateTime instances.

Namespace: MindFusion.Scheduling
File: DateTime.js

 Syntax

JavaScript  Copy Code

function monthsBetween (date1, date2)

 Parameters

date1

DateTime. The first DateTime instance.

date2

DateTime. The second DateTime instance.

 Return Value

Number. The number of months.

 See Also