Date
Checks for a valid date
-
return (boolean)
In your code
if(v::date('2012-12-12')) {
echo 'Yay, valid!';
}
In fields
fields:
example:
label: Example field
type: text
validate: date
Checks for a valid date
if(v::date('2012-12-12')) {
echo 'Yay, valid!';
}
fields:
example:
label: Example field
type: text
validate: date