Answers for "python convert birthday to age"

1

how to find current age from date of birth in python

today_date = datetime.datetime.now()
dob = datetime.datetime(1982, 5, 20)
print(today_date - dob)
Posted by: Guest on July-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language