- $tmp = $valor['F'].'-'.$valor['d'].'-'.$valor['Y'];
- return Validate::date($tmp, array('format' => '%Y-%m-%d'));
+ if ($valor['Y'] != '--' && $valor['d'] != '--' && $valor['F'] != '--') {
+ return Validate::date($valor['Y'].'-'.$valor['d'].'-'.$valor['F'], array('format' => '%Y-%m-%d'));
+ }
+ return true;