Detailed Description

Date validates against the specified date format.

Configuration examples:

// validate against default format (Y-m-d)
// validate against j-M-Y format (e.g. 15-Feb-2009)
ingo herwig

Definition at line 29 of file Date.php.

+ Inheritance diagram for Date:

Public Member Functions

 validate ($value, $options=null, $context=null)

Public Attributes

const DEFAULT_FORMAT = 'Y-m-d'

Member Function Documentation

validate (   $value,
  $options = null,
  $context = null 
See also
ValidateType::validate $options is an associative array with keys 'format' (optional)

Implements ValidateType.

Definition at line 37 of file Date.php.

Member Data Documentation

const DEFAULT_FORMAT = 'Y-m-d'

Definition at line 31 of file Date.php.