Get age as specified date given date of birth.
This is not as easy as it might seem: DateDiff("y", DOB, Date) does not work. GetAgeInt is used in recordsets like this: Age: IIf(IsNull(DOB), Null, GetAgeInt(DOB)) as the variant-returning GetAge function gets cast to a string if there are any nulls in the column, which causes DataLists to sort age using string order rather then integer. This strong-type-returning function will not be cast to a string.
Returns -1 if the DOB cannot be converted to a valid date.
Either Null or the Date of Birth as a Date or String.
The optional date at which to calculate age. Defaults to today.
GetAge ("21 Sep 1970", #1 Jan 2014#) => 44