Change date range for query