Java Date Before isDateBeforeCurrentDate(Date date)

Here you can find the source of isDateBeforeCurrentDate(Date date)

Description

is Date Before Current Date

License

Open Source License

Declaration

public static boolean isDateBeforeCurrentDate(Date date) 

Method Source Code


//package com.java2s;

import java.util.Calendar;
import java.util.Date;

public class Main {
    public static boolean isDateBeforeCurrentDate(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);/* www  .j a v  a 2s.  c om*/
        Calendar now = Calendar.getInstance();
        return cal.before(now);
    }
}

Related

  1. isBefore_day(Date time1, Date time2, int days)
  2. isBeforeCommonEra(Date date)
  3. isBeforeDate(long time1, long time2)
  4. isBeforeEndOfDate(Date subject, Date predicate)
  5. isDataBeforeData2TruncByDay(Date data1, Date data2)
  6. monthInRange(Date current, Date before, Date after)