I would use the 'SET VAR vimon = (IMON('05/20/95'))' function and set the
start as a var then use (imon(.#date) for current month and then also use
the SET VAR viday = (IDAY('06/12/93')) function in a similar fashion for
start, current and end.
Seems a bit long but it is for sure. No rounding up or down and figure in
leap years. Jm.02 Hey ya I am old fasion!
Paul
From: [email protected] [mailto:[email protected]] On Behalf Of Dan Goldberg
Sent: Thursday, August 26, 2010 1:02 PM
To: RBASE-L Mailing List
Subject: [RBASE-L] - month calculations
I am perplexed on a calculation I need to do.
I need to find out how many months is left in a warranty. So it would be
today minus the sold date.
I can get the amount of days left in the warranty by just subtracting them
but they want the amount of months left.
I am looking at the functions but am hitting a brain lock on how to
calculate the months left.
Help!!
Dan Goldberg