Date Class Reference
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"}
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()
validate | ( | $value, | |
$options = null , |
|||
$context = null |
|||
) |
- See also
- ValidateType::validate $options is an associative array with keys 'format' (optional)
Implements ValidateType.