Right now I have this code. I am intending to write code that calculates the number of days between today and January 1 of this year.
As you can see in the output below, it prints the number of days and the time.
How can I rewrite the code so that it says just '78', not '78 days, 21:04:08.256440'?
from datetime import datetime
Now = datetime.now()
StartDate = datetime.strptime(str(Now.year) +'-01-01', '%Y-%m-%d')
NumberOfDays = (Now - StartDate)
print(NumberOfDays)
#Output: 78 days, 21:04:08.256440