Answers for "how to use datetime to tell your age in python"

1

how to use datetime to tell your age in python

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

Code answers related to "how to use datetime to tell your age in python"

Python Answers by Framework

Browse Popular Code Answers by Language