public static function isDate($object)
    {
        return $object instanceof \DateTime || (static::isString($object) && strtotime((string)$object) !== false);
    }
public static function isDate($object)
    {
        return $object instanceof \DateTime || (static::isString($object) && strtotime((string)$object) !== false);
    }
public static function isDate ( $ object ) { return $ object instanceof \ DateTime || ( static :: isString ( $ object ) && strtotime ( ( string ) $ object ) !== false ) ; }
Returns true if object is a DateTime instance. Everything the strtotime function can understand is also
considered a date.

@category Object Functions

@param mixed $object the object

@return bool
Returns true if object is a DateTime instance . Everything the strtotime function can understand is also considered a date .