added control over inclusive/exclusive numeric/date ranges