Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
no module solution in Clear category for Days Between by Pouf
def days_diff(date1, date2):
total = []
for date in [date1, date2]:
year = date[0]
month = date[1]
a = (14 - month)//12
y = year - a
dayN = date[2]+(153*(month + 12*a - 3)+2)//5 + 365*y + y//4 - y//100 + y//400
total.append(dayN)
return abs(total[0]-total[1])
Oct. 15, 2014
Comments: