class_docstr: Validate and parse dates using the `dateutil` package.
docstr: Return a datetime.datetime object containing the parsed date, or
  None if the date is invalid.
  
  If a ISO date string with a timezone is provided, there is no guarantee
  that timezones will be properly handled by the parser. Perspective
  stores and serializes times in UTC as a milliseconds
  since epoch timestamp. For more definitive timezone support, use
  `datetime.datetime` objects or `pandas.Timestamp` objects with the
  `timezone` property set.
  
  Args:
      datestring (:obj:`str`): the datestring to parse
  
  Returns:
      (:class:`datetime.date`/`datetime.datetime`/`None`): if parse is
          successful.
docstr_tok: ["Return","a","datetime.datetime","object","containing","the","parsed","date",",","or","None","if","the","date","is","invalid",".","If","a","ISO","date","string","with","a","timezone","is","provided",",","there","is","no","guarantee","that","timezones","will","be","properly","handled","by","the","parser",".","Perspective","stores","and","serializes","times","in","UTC","as","a","milliseconds","since","epoch","timestamp",".","For","more","definitive","timezone","support",",","use","`","datetime.datetime","`","objects","or","`","pandas.Timestamp","`","objects","with","the","`","timezone","`","property","set",".","Args",":","datestring","(",":","obj",":","`","str","`",")",":","the","datestring","to","parse","Returns",":","(",":","class",":","`","datetime.date","`","\/","`","datetime.datetime","`","\/","`","None","`",")",":","if","parse","is","successful","."]
code: def parse(self, datestring):
      """Return a datetime.datetime object containing the parsed date, or
      None if the date is invalid.
  
      If a ISO date string with a timezone is provided, there is no guarantee
      that timezones will be properly handled by the parser. Perspective
      stores and serializes times in UTC as a milliseconds
      since epoch timestamp. For more definitive timezone support, use
      `datetime.datetime` objects or `pandas.Timestamp` objects with the
      `timezone` property set.
  
      Args:
          datestring (:obj:`str`): the datestring to parse
  
      Returns:
          (:class:`datetime.date`/`datetime.datetime`/`None`): if parse is
              successful.
      """
      try:
          return parse(datestring)
      except (ValueError, OverflowError):
          return None
  
file_path: perspective/python/perspective/perspective/table/_date_validator.py
imports: import numpy
  from calendar import timegm
  from datetime import date, datetime
  from dateutil.parser import parse
  from pytz import UTC
  from pandas import Period
  from re import search
  from time import mktime
  from .libpsppy import t_dtype
label_desc: Use image node_id 1 for calling the _PerspectiveDateValidator obj's underlying member method code with example usage: obj.parse(datestring) and returns: parse, None