code: def match_date(self, value, strict=False):
          
          value = stringify(value)
          try:
              parse(value)
          except Exception:
              self.shout('Value %r is not a valid date', strict, value)
docs: if value is a date