Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
 
PREVIOUS NEXT
Tagged: #datetime #age #python
ADD COMMENT
Topic
Name
6+2 =