after()

Check whether this date follows the date passed in as the input parameter.

Syntax

public boolean after(DtpDate date) 
 

Parameters

date
The date to compare with this date.

Return values

Return true if this date follows the date passed in, and false if this date precedes the data passed in.

Exceptions

DtpDateException
 

Examples

try
    {
    DtpDate toDay = new DtpDate();
    DtpDate tomorrow = yesterday.addDays(-1);
    // isAfter should be false.
    boolean isAfter = yesterday.after(today)
    }
 catch ( DtpDateException date_e )
    {
    System.out.println(date_e.getMessage());
    }
 

See also

before()

Copyright IBM Corp. 2003