Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Days Between by jacekgrycza
from datetime import date
def days_diff(date1, date2):
date1=date(date1[0], date1[1] ,date1[2])
date2=date(date2[0], date2[1], date2[2])
t=date2-date1
t=t.total_seconds()
return (abs(int(t/(24*3600))))
Oct. 22, 2016