import datetime
CurrentDate = datetime.date.today().strftime('%m/%d/%Y')
print(CurrentDate)
UserInput = input("When is your birthday? (mm/dd/yyyy) ")
birthday = datetime.datetime.strptime(UserInput, '%m/%d/%Y').date()
days = birthday - CurrentDate
print("your next birthday is in " + days )
It's giving me this error message:
TypeError: unsupported operand type(s) for -: 'datetime.date' and 'str'
I've tried to convert them with no result.