import datetime def NoDays(d1): c1 = datetime.datetime.strptime (d1.split () [0], "%Y/%m/%d") current = datetime.datetime.today() c2 = datetime.datetime.strptime (str(current).split () [0], "%Y-%m-%d") n = (c1 - c2).days return n
def NoDays(d1): c1 = datetime.datetime.strptime(d1.split()[0], "%Y-%m-%d").date() c2 = datetime.datetime.now().date() return (c1-c2).days
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.