AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: monthsBetween

monthsBetween(d1, d2) returns the number of months between the date structures d1 and d2.

Example:

d1 ≔ encodeDate(2010, 06, 19)

year: 2010
month: 6
day: 19
weekOfYear: 24
dayOfYear: 170
dayOfWeek: 6

d2 ≔ date(0)

year: 2010
month: 6
day: 23
weekOfYear: 25
dayOfYear: 174
dayOfWeek: 3

monthsBetween(d1, d2)

0.131416837782