lib/magento/Validator.php
public function validateDate($date)
    {
        $subs = null;
        $check1 = preg_match("/^([\d]{4})-([\d]{2})-([\d]{2})$/i", $date, $subs);
        if(!$check1) {
            return false;
        }
        return checkdate($subs[2], $subs[3], $subs[1]);
    }
public function validateDate($date)
    {
        $subs = null;
        $check1 = preg_match("/^([\d]{4})-([\d]{2})-([\d]{2})$/i", $date, $subs);
        if(!$check1) {
            return false;
        }
        return checkdate($subs[2], $subs[3], $subs[1]);
    }
public function validateDate ( $ date ) { $ subs = null ; $ check1 = preg_match ( "/^([\d]{4})-([\d]{2})-([\d]{2})$/i" , $ date , $ subs ) ; if ( ! $ check1 ) { return false ; } return checkdate ( $ subs [ 2 ] , $ subs [ 3 ] , $ subs [ 1 ] ) ; }
Validate date format
@param $date
@return bool
Validate date format