I have two different values. One value(A) is 2020-03-06T10:00:00+05:30 and another one(B) is 2020-03-03 14:04:02. These two are in str formats. Now I have to compare these two different values as date.If the 'A' is greater than 'B' I have return 'True'
The method I have tired is
if A>B:
return True
else:
return False
What is happening is if it's greater or smaller it's always going to if statement only. I am getting A & B from differnet sources and it's in the same format which I have given above.