Answers for "year of birth using age"

10

age in days to age in years

from datetime import date

def calculate_age(born):
    today = date.today()
    return today.year - born.year - ((today.month, today.day) < (born.month, born.day))
Posted by: Guest on April-17-2021

Code answers related to "year of birth using age"

Code answers related to "Javascript"

Browse Popular Code Answers by Language