programming-examples/python/_Basics/Calculate number of days between two dates.py
2019-11-15 12:59:38 +01:00

6 lines
138 B
Python

from datetime import date
f_date = date(2014, 7, 2)
l_date = date(2014, 7, 11)
delta = l_date - f_date
print(delta.days)