date
Checks for a valid date or compares two dates with each other.
V::date(string $value, string $operator = null, string $test = null): boolParameters
| Name | Type | Default | 
|---|---|---|
| $value * | string | – | 
| $operator | string | null | 
| $test | string | null | 
Return type
bool
Checking the validity of a date string
In your code
if(V::date('2012-12-12')) {
  echo 'Yay, valid!';
}In fields
fields:
  example:
    label: Example field
    type: text
    validate: date