Date validation and filtering