Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: datetime module FTW solution in Clear category for Days Between by leggewie
from datetime import date
def days_diff(a, b):
return abs(date(*a) - date(*b)).days
# comments:
# *a: unpack a tuple for consumption by date function
May 23, 2021