Detailed Description

Date validates against the specified date format.

Configuration examples:

// validate against default format (Y-m-d)
date
// validate against j-M-Y format (e.g. 15-Feb-2009)
date:{"format":"j-M-Y"}
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

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.