datetime if date greater than code example
Example: python datetime compare
date1 = datetime.date(2014, 3, 2)
date2 = datetime.date(2013, 8, 1)
was_date1_before = date1 < date2
date1 = datetime.date(2014, 3, 2)
date2 = datetime.date(2013, 8, 1)
was_date1_before = date1 < date2