Allow date range in query