code: def __deserialize_date(self, string):
          
          try:
              from dateutil.parser import parse
              return parse(string).date()
          except ImportError:
              return string
          except ValueError:
              raise ApiException(
                  status=0,
                  reason="Failed to parse `{0}` into a date object".format(string)
              )
docs: Deserializes string to date.
  
          :param string: str.
          :return: date.