Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
using datetime solution in Clear category for Days Between by new_hoschi
import datetime
def days_diff(a, b):
'''
the difference returns an element of type datetime.timedelta, its attribute days gives the desired day difference of both dates
(possibly with the wrong sign, so we have to take absolute values)
'''
return abs((datetime.date(b[0],b[1],b[2])-datetime.date(a[0],a[1],a[2])).days)
March 28, 2020
Comments: