I'm trying to count days between two dates but I can't figure out how to do it.
This is the code I am using:
from datetime import datetime
from datetime import date
hoy = date(datetime.today().strftime("%Y,%m,%e")) #current time
otra_fecha = date(2022, 11, 5)
delta = hoy - otra_fecha
print(delta.days)
This is the error that is thrown:
TypeError: an integer is required (got type str)