Apply range limits to datebox

resolves #297