I think you can do a simple comparison here: `if self.date_upto.data < self.date.data`