I have 2 variables. One is datetime in string format and the other is datetime in datetime.datetime format.
For example -
2021-09-06T07:58:19.032Z # string
2021-09-05 14:58:10.209675 # datetime.datetime
I want to find out the difference between these 2 times in seconds. I think we need to have both in datetime before we can do this subtraction. I'm having a hard time converting the string to datetime. Can someone please help.