'Invalid date format' ); /** * Validate the input value * * @param string $value The format string to validate * @param null $context The form context (ignored) * * @return bool True when the input is valid, otherwise false * * @see Zend_Validate_Abstract::isValid() */ public function isValid($value, $context = null) { $rest = trim($value, join(' ', array_merge($this->validChars, $this->validSeparators))); if (strlen($rest) > 0) { $this->_error('INVALID_CHARACTERS'); return false; } return true; } }