Here you can find the source of before(Date dt, Date dt2)
Parameter | Description |
---|---|
dt | date one |
dt2 | date two |
public static boolean before(Date dt, Date dt2)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { /**//from www . j ava2 s . c o m * Date one comes before date two. * * @param dt date one * @param dt2 date two * @return true if neither are null and the first is before the second */ public static boolean before(Date dt, Date dt2) { return !(dt == null || dt2 == null) && dt.before(dt2); } }