class_docstr: Data representing dates alone.
  
  :param date_format:
      A formatting string for :meth:`datetime.datetime.strptime` to use
      instead of using regex-based parsing.
  :param locale:
      A locale specification such as :code:`en_US` or :code:`de_DE` to use
      for parsing formatted dates.
class_docstr_tok: ["Data","representing","dates","alone",".",":","param","date_format",":","A","formatting","string","for",":","meth",":","`","datetime.datetime.strptime","`","to","use","instead","of","using","regex-based","parsing",".",":","param","locale",":","A","locale","specification","such","as",":","code",":","`","en_US","`","or",":","code",":","`","de_DE","`","to","use","for","parsing","formatted","dates","."]
code: def __init__(self, date_format=None, locale=None, **kwargs):
      super().__init__(**kwargs)
  
      self.date_format = date_format
      self.locale = locale
  
      self._constants = parsedatetime.Constants(localeID=self.locale)
      self._parser = parsedatetime.Calendar(
          constants=self._constants,
          version=parsedatetime.VERSION_CONTEXT_STYLE,
      )
  
file_path: agate/agate/data_types/date.py
imports: import locale
  from datetime import date, datetime, time
  import parsedatetime
  from agate.data_types.base import DataType
  from agate.exceptions import CastError
label_desc: Use image node_id 1 to create a new Date object from inherited base classes: DataType with example: obj = Date(date_format, locale)