Z Programs
Z.age.with.years
Allows compiled reports to compare ages.
Arguments: A =
birthdate
B = OPTIONAL base date (e.g., admission
date) - program uses IF{B;@.today}
Returns: Age in
years, months, days. If the age is less than one year, "0Y "
is
returned in front of the number of months and days.
Examples:
32, 3Y 10M, 0Y 0M 21D
Example Call: %Z.age.with.years(20000101,20000421)
returns 0Y 03M 20D
Posted: August 03, 2001
