1992. Class

1992.1. Zend\Validator\Date

1992.1.1. Methods

1992.1.1.1. __construct

__construct()

Sets validator options

Parameters:string|array|Traversable – OPTIONAL

1992.1.1.2. getFormat

getFormat()

Returns the format option

Return type:string|null

1992.1.1.3. setFormat

setFormat()

Sets the format option

Parameters:string
Return type:Date provides a fluent interface

1992.1.1.4. isValid

isValid()

Returns true if $value is a valid date of the format YYYY-MM-DD If optional $format is set the date format is checked according to DateTime

Parameters:string|array|int|DateTime
Return type:bool

1992.1.2. Constants

1992.1.2.1. INVALID

1992.1.2.2. INVALID_DATE

1992.1.2.3. FALSEFORMAT