code: def _str_to_datetime(self, str_value):
          
          try:
              ldt = [int(f) for f in str_value.split('-')]
              dt = datetime.datetime(*ldt)
          except (ValueError, TypeError):
              return None
          return dt
docs: Parses a `YYYY-MM-DD` string into a datetime object.