I have two variables (a and b) in the DateTime format 'YYYYMMDDTHHMMSS' (e.g. '20180108T124506'), and I would like to know how to decide which one is more recent. So essentially the highest number.
The problem is that I can't convert it to an integer using int(variable) because there's a T in the variable.
How can I circumvent this problem?