Here you can find the source of isLowerEqualDate(Date date)
public static boolean isLowerEqualDate(Date date)
//package com.java2s; /*/*from w w w . j a v a2 s .co m*/ * Distributable under LGPL v3 license. * See terms of license at https://github.com/Yunfeng/schotel/blob/master/LICENSE */ import java.util.Calendar; import java.util.Date; public class Main { public static boolean isLowerEqualDate(Date date) { long ms = date.getTime() - getCurDateTime().getTime(); return ms <= 0; } public static Date getCurDateTime() { return Calendar.getInstance().getTime(); } }