Blame it on my bad design. I have the column datatype of datetime as text. And now, I need to compare (<) 2 datetime values if one is greater than the other. Getting the exception as "not all arguments converted during string formatting"
The values are in "YYYY-MM-DD HH:MM:SS" format