Use the datetime module's strptime() method to convert the strings to a common format, then compare them using the comparison operators.