Date range class validator.