public boolean before(DtpDate date)
Return true if this date precedes the date passed in, and false if this date follows the data passed in.
DtpDateException
try
{ DtpDate toDay = new DtpDate(); DtpDate tomorrow = yesterday.addDays(-1); // isBefore should be true. boolean isBefore = yesterday.before(today) } catch ( DtpDateException date_e ) { System.out.println(date_e.getMessage()); }