| **Navigation:**  [[introduction.htm|Language Reference]] > 13 - Built-in Functions >====== AGE (return age from base date) ====== | [[address return memory address .htm|{{btn_prev_n.gif|Previous page}}]][[introduction.htm|{{btn_home_n.gif|Return to chapter overview}}]][[alert set event generation key .htm|{{btn_next_n.gif|Next page}}]] | | || **AGE(**//birthdate// [,//base date//]**)** {{blk2blue.jpg|blk2blue.jpg}} | **AGE** | Returns elapsed time. | | //birthdate// | A numeric expression for a standard date. | | //base date// | A numeric expression for a standard date. If this parameter is omitted, the operating system date is used for the computation. | The **AGE** procedure returns a string containing the time elapsed between two dates. The age return string is in the following format: ** 1 to 60 days         - 'nn DAYS'** ** 61 days to 24 months - 'nn MOS'** ** (2 years + 1 month) to 999 years - 'nnn YRS'** | **Return Data Type:** | STRING | **Example:** **Message = Emp:Name & 'is ' & ****AGE****(Emp:DOB,TODAY()) & ' old today.'** **See Also:** [[standard date.htm|Standard Date]] [[day return day of month .htm|DAY]] [[month return month of date .htm|MONTH]] [[year return year of date .htm|YEAR]] [[today return system date .htm|TODAY]] [[date return standard date .htm|DATE]]