Check whether this date precedes the date passed in as the parameter.
Syntax
public boolean before(DtpDate date)
Parameters
Return values
Return true if this date precedes the date passed in, and false if this date follows the data passed in.
Exceptions
DtpDateException
Examples
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()); }
See also