if ($valor['Y'] and $valor['d'] and $valor['F']) {
$str = sprintf('%4d-%02d-%02d', $valor['Y'], $valor['F'], $valor['d']);
return Validate::date($str, array('format' => '%Y-%m-%d'));
if ($valor['Y'] and $valor['d'] and $valor['F']) {
$str = sprintf('%4d-%02d-%02d', $valor['Y'], $valor['F'], $valor['d']);
return Validate::date($str, array('format' => '%Y-%m-%d'));