constrain dates to remain within requested boundaries