Here you can find the source of after(Date dt, Date dt2)
public static boolean after(Date dt, Date dt2)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**/*from w ww . j av a2s . c o m*/ * A null safe check to whether dt is after dt2. * * @return if dt2 is after dt */ public static boolean after(Date dt, Date dt2) { return !(dt == null || dt2 == null) && dt.after(dt2); } }