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

6 lines
138 B
Python
Raw Normal View History

2019-11-18 14:44:36 +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)