Possible Duplicate:
How can I calculate the age of a person in year, month, days?
How to calculate the number of days that person has been alive on his Nth birthday? given his birth month, day, year, and his age? How to solve the leap year challenge?