我有两个约会
Date dateOfEnq = sdf.parse(ea.getDateOfEnquiry());
Date validDate = DateUtil.getAfterMonth(dateOfEnq, range);
现在我在做
if (dateOfEnq <= validDate) {
ount++;
}
但这给了我错误
The operator <= is undefined for the argument type(s) java.util.Date, java.util.Date.
我如何比较这两个日期?
谢谢