No, there is no spatial thing behind this behavior. In fact, Python compares lexicographicaly strings, in which case it works, but this is not the right way, because it can also accept incorrect dates!
Here is a Counterexample :
>>> a ='2009-33-10'
>>> b ='2009-11-1'
>>> a>b
True
datetime , .
datetime.datetime.strptime, , ' .
