I want to calculate the age of a person given the date of birth and the current date in years, months and days relative to the current date.
For example:
<
Since you are obviously using python: Create to datetime objects, one with "birthday" and one with "now", subtract them and read the age from the resulting timedelta object.
Why bothering with things like leap years?