Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Tom Rettigs Library - inmonths(<d start date>, <d end date>) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 INMONTHS(<D start date>, <D end date>)
 Evaluates the number of months between two dates.
 Returns <expN> number of months between two dates.

 Returns -1 if start date is greater than end date.

 Useful in applications that handle dates by months.

 date1 = CTOD("08/07/86")
 date2 = CTOD("08/17/86")
 date3 = CTOD("11/26/86")

 INMONTHS( date1, date2 ) returns   .35
 INMONTHS( date1, date3 ) returns  3.67
 INMONTHS( date2, date3 ) returns  3.35
 INMONTHS( date3, date1 ) returns -1


             Placed in the Public Domain by Tom Rettig Assoc.

See Also: INWEEKS() INWKDAYS()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson