Code example for Date

Methods: after

0
            if (nodue_dt == null) {
                cal_date.setTime(cal_dt);
            } else if (cal_dt == null) {
                cal_date.setTime(nodue_dt);
            } else { 
                if (cal_dt.after(nodue_dt)) {
                    cal_date.setTime(cal_dt);
                } else { 
                    cal_date.setTime(nodue_dt);
                } 
            } 
            //} 
        } catch (Exception pce) {
            System.err.println("Exception in FindCalDate:" + pce);
        } 
 
        return cal_date;
    } 
}