Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
3 lines solution in Uncategorized category for Days Between by Karlay
from datetime import datetime
def days_diff(a, b):
a = datetime.strptime(str(a[0]).zfill(4)+str(a[1]).zfill(2)+str(a[2]).zfill(2), "%Y%m%d")
b = datetime.strptime(str(b[0]).zfill(4)+str(b[1]).zfill(2)+str(b[2]).zfill(2), "%Y%m%d")
return abs((a - b).days)
April 26, 2021
Comments: