add datetime limit to pagination