I modify the code like you say but does'nt work.
and for information the variables 'start_date' and 'end_date' are recovered respectively from functions
and for information the variables 'start_date' and 'end_date' are recovered respectively from functions
def join_start_date(self): try: start_day = int(self.lineEdit_start_day.text()) start_month = int(self.lineEdit_start_month.text()) start_year = int(self.lineEdit_start_year.text()) start_date = dt.date(start_year, start_month, start_day) except ValueError: print("error") else: self.lineEdit_start_date_writted.setText("{:%Y-%m-%d}".format(start_date)) print("OK")
def join_end_date(self): try: end_day = int(self.lineEdit_end_day.text()) end_month = int(self.lineEdit_end_month.text()) end_year = int(self.lineEdit_end_year.text()) end_date = dt.date(end_year, end_month, end_day) except ValueError: print("error") else: self.lineEdit_end_date_writted.setText("{:%Y-%m-%d}".format(end_date)) print("OK")