import datetime
dt1 = datetime.datetime(2011, 3, 3, 11, 12)
day = datetime.date(2011, 3, 2)
dt2 = datetime.datetime.combine(day, datetime.time(0, 0))
print(dt1 > dt2)
can't compare datetime.datetime to datetime.date