changed date query handler