(self, date)
Make changes to the date.
Make changes to the date.
Make changes to the date .
def date(self, date):
        """Make changes to the date."""
        try:
            dt = datetime.datetime.strptime(date, self._DATE_FORMAT)
        except ValueError as exc:
            logger.error(
                'Unable to add date chip, wrong date format', exc_info=True)
            raise ValueError('Wrong date format') from exc
        self._date = dt
def date ( self , date ) : try : dt = datetime . datetime . strptime ( date , self . _DATE_FORMAT ) except ValueError as exc : logger . error ( 'Unable to add date chip, wrong date format' , exc_info = True ) raise ValueError ( 'Wrong date format' ) from exc self . _date = dt