A format only controls the display value, not the underlying value. If the variable type is numeric and you can apply a date format, then you can write the comparison in date9 format, or even as the numeric SAS date. So you can write your conditions as DATE9 without modifying your date variables, as long as they're date variables
... View more