i iam trying to fing the number of dates between a given dat and todays date.
given date: 2022-10-10T09:01:38.581210Z
todays date: i ran this code:
from datetime import datetime
now = datetime.now()
# dd/mm/YY H:M:S
dt = now.strftime("%Y-%m-%d" + "T" + "%H:%M:%S" + "Z")
my output for todays date:
2022-10-11T08:29:36Z
i am trying to get the number of days between these two dates. they are both strings and i can not perform simple subtraction. please help