src/Titon/Utility/Validate.php
public static function date($input) {
        $input = Time::toUnix($input);

        if (!$input) {
            return false;
        }

        list($m, $d, $y) = explode('/', date('m/d/Y', $input));

        return checkdate($m, $d, $y);
    }
public static function date($input) {
        $input = Time::toUnix($input);

        if (!$input) {
            return false;
        }

        list($m, $d, $y) = explode('/', date('m/d/Y', $input));

        return checkdate($m, $d, $y);
    }
public static function date ( $ input ) { $ input = Time :: toUnix ( $ input ) ; if ( ! $ input ) { return false ; } list ( $ m , $ d , $ y ) = explode ( '/' , date ( 'm/d/Y' , $ input ) ) ; return checkdate ( $ m , $ d , $ y ) ; }
Validate input is a real date.

@uses Titon\Utility\Time

@param string $input
@return bool
Validate input is a real date .