if ($DateFrom instanceof DateTime) {
            $query->where("date", ">=", $DateFrom->format(DateTime::ISO8601));
        }