code: public static boolean after(Date d1, Date d2) {
          d1 = floor(d1);
          Calendar c1 = Calendar.getInstance();
          c1.setTime(d1);
  
          d2 = floor(d2);
          Calendar c2 = Calendar.getInstance();
          c2.setTime(d2);
  
          return c1.after(c2);
      }
docs: Compares dates <code>d1</code> and <code>d2</code> taking into
  consideration only the year, month and day
  @param d1 the first date
  @param d2 the second date
  @return <code>true</code> if <code>d1</code> is after <code>d2</code>,
  <code>false</code> otherwise
  @see java.util.Calendar#after(java.lang.Object)
  @see #before(java.util.Date , java.util.Date)
  @see #compare(java.util.Date , java.util.Date)