Craven - Days Between - Readable solution in Clear category for Days Between by corwin.ravenwood
import datetime as dt
def days_diff(a, b):
# Returns the difference between two given dates in days as an integer.
a_date = dt.datetime(*a[:])
b_date = dt.datetime(*b[:])
return abs(a_date - b_date).days
April 18, 2021