programming-examples/python/Date/Program to get days between two dates.py

4 lines
87 B
Python
Raw Normal View History

2019-11-15 12:59:38 +01:00
from datetime import date
a = date(2000,2,28)
b = date(2001,2,28)
print(b-a)