code: def deserialize_date(string):
      
      try:
          from dateutil.parser import parse
          return parse(string).date()
      except ImportError:
          return string
docs: Deserializes string to date.
  
      :param string: str.
      :type string: str
      :return: date.
      :rtype: date