programming-examples/python/_Basics/Calculate number of days between two dates.py

6 lines
138 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
from datetime import date
f_date = date(2014, 7, 2)
l_date = date(2014, 7, 11)
delta = l_date - f_date
print(delta.days)