Java Date Before isBefore2015(Date date)

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

Description

is Before

License

Open Source License

Declaration

public static boolean isBefore2015(Date date) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

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

public class Main {
    public static boolean isBefore2015(Date date) {
        Calendar cal = new GregorianCalendar();
        cal.set(Calendar.MONTH, Calendar.JANUARY);
        cal.set(Calendar.DAY_OF_MONTH, 1);
        cal.set(Calendar.YEAR, 2015);
        Date fromDate = cal.getTime();
        return fromDate.after(date);
    }//w w  w . j av a2s  .  c o  m
}

Related

  1. getQuarterStartDateBeforeCurrent(int num, Date current)
  2. getSomeDaysBeforeAfter(Date date, int days)
  3. isAtLeastOneDayBefore(Date daybefore, Date dayafter)
  4. isBefore(Date date)
  5. isBefore(Date date1, Date date2)
  6. isBefore_day(Date time1, Date time2, int days)
  7. isBeforeCommonEra(Date date)
  8. isBeforeDate(long time1, long time2)
  9. isBeforeEndOfDate(Date subject, Date predicate)