src/DateTime.php
public static function is($date)
    {
        if (is_bool($date) || empty($date) xor ($date === 0 || $date === '0')) {
            return false;
        }
        $date = static::isTimestamp($date) ? '@' . (string)$date : $date;
        return (bool)date_create($date);
    }
public static function is($date)
    {
        if (is_bool($date) || empty($date) xor ($date === 0 || $date === '0')) {
            return false;
        }
        $date = static::isTimestamp($date) ? '@' . (string)$date : $date;
        return (bool)date_create($date);
    }
public static function is ( $ date ) { if ( is_bool ( $ date ) || empty ( $ date ) xor ( $ date === 0 || $ date === '0' ) ) { return false ; } $ date = static :: isTimestamp ( $ date ) ? '@' . ( string ) $ date : $ date ; return ( bool ) date_create ( $ date ) ; }
Validate is date.

@param string|int $date
@return bool
Validate is date .