Zend\Validator\Date::setFormat
Sets the format option
Format cannot be null. It will always default to 'Y-m-d', even if null is provided.
Signature
public function setFormat([string
$format = self::FORMAT_DEFAULT] )
Parameters
$format
— string
Returns
- Date
- provides a fluent interface
Line | Task |
---|---|
97+ | validate the format |