Method Details

* date_format: A regular expression that dates must match
Note that the regular expression must use named subpatterns like (?P)
Working example: ~(?P\d{2})/(?P\d{2})/(?P\d{4})~
* with_time: true if the validator must return a time, false otherwise
* date_output: The format to use when returning a date (default to Y-m-d)
* datetime_output: The format to use when returning a date with time (default to Y-m-d H:i:s)
* date_format_error: The date format to use when displaying an error for a bad_format error (use date_format if not provided)
* max: The maximum date allowed (as a timestamp or accecpted date() format)
* min: The minimum date allowed (as a timestamp or accecpted date() format)
* date_format_range_error: The date format to use when displaying an error for min/max (default to d/m/Y H:i:s)