Function ibvAgeInMonths

Description

This function is given two dates, a base date to age from and the date of a posting. It produces an ageing figure based on the difference between the two dates. The answer is returned as an integer coded according to the difference in months. Thus 0 = current month, 1 = previous month 2 = month before that and so on.

Parameters

pBaseDate The date to age from
pPostDate The date of the posting
Returns The ageing in months, 0 = current month, 1 = previous month etc

 

  •