Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Days Between by Daniel_Pereira
def days_diff(date1, date2):
from datetime import date
# diff is a timedelta object
diff = date(*date2) - date(*date1)
return abs(diff.days)
Dec. 27, 2014
Comments: