Hi -
To get full months you could use something like this:
The + (day(startdate) > day(enddate)) portion is a Boolean statement which will yield -1 if True, 0 if False.
HTH - Bob
To get full months you could use something like this:
Code:
NumMonths = DateDiff("m", startdate, enddate + (day(startdate) > day(enddate))
The + (day(startdate) > day(enddate)) portion is a Boolean statement which will yield -1 if True, 0 if False.
HTH - Bob
Last edited: