code: def parse_date(date_string, ignoretz=True):
      
      try:
          return parser.parse(date_string, ignoretz=ignoretz)
      except TypeError:
          return None
docs: Parse a string as a date. If the string fails to parse, `None` will be returned instead
  
      >>> parse_date('2017-08-15T18:24:31')
      datetime.datetime(2017, 8, 15, 18, 24, 31)
  
      Args:
          date_string (`str`): Date in string format to parse
          ignoretz (`bool`): If set ``True``, ignore time zones and return a naive :class:`datetime` object.
  
      Returns:
          `datetime`, `None`