I'm trying to find the number of days between two dates and output it as a string.
Here is what I have
currentDate = datetime.datetime.now()
newDate = currentDate + datetime.timedelta(days=3)
dateDifference = newDate - currentDate
print(dateDifference)
I've tried
print(dateDifference.strftime('%d'))
But this doesn't work.
I want the out to say only the number "3" as a string.
Thanks.