*/
function validate($valor, $nombre, $formato = '')
{
+ $str = sprintf ("%4d-%02d-%02d",$valor['Y'],$valor['F'],$valor['d']);
+
if ($valor['Y'] != '--' && $valor['d'] != '--' && $valor['F'] != '--') {
- return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d'));
+ return Validate::date($str, array('format' => '%Y-%m-%d'));
}
return true;
} // end func validate