private function _checkFormat($value) { try { $parsed = Zend_Locale_Format::
getDate($value, array
( 'date_format' =>
$this->_format, 'format_type' => 'iso',
'fix_date' => false
));
if (isset($parsed['year'
]) and ((strpos(strtoupper($this->_format
), 'YY'
) !== false
) and (strpos(strtoupper($this->_format
), 'YYYY'
) === false
))) { $parsed['year'
] = Zend_Date::
getFullYear($parsed['year'
]);
} } catch (Exception
$e) { // Date can not be parsed
return false;
} if (((strpos($this->_format, 'Y'
) !== false
) or (strpos($this->_format, 'y'
) !== false
)) and (!
isset($parsed['year'
]))) { // Year expected but not found
return false;
}