Date

Checks for a valid date

  • return (boolean)

In your code

if(v::date('2012-12-12')) {
  echo 'Yay, valid!';
}

In panel fields

fields:
  example:
    label: Example field
    type: text
    validate: date