Showing posts with label day diff. Show all posts
Showing posts with label day diff. Show all posts

Monday, 18 July 2016

Calculate Days Between Two Dates

from datetime import date

d0 = date(2008, 8, 18)
d1 = date(2008, 9, 26)
delta = d0 - d1 
print delta.days