[Solved] Turn a datetime into days in python [closed]
import datetime d0 = datetime.datetime.strptime(“0001-1-01”, “%Y-%m-%d”) df = datetime.datetime.strptime(“2002-3-14”, “%Y-%m-%d”) print(df-d0) >> 730922 days, 0:00:00 0 solved Turn a datetime into days in python [closed]