Apply range limits to datebox