Java Day End isEndOfSeason(Date date)

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

Description

is End Of Season

License

Open Source License

Declaration

public static boolean isEndOfSeason(Date date) 

Method Source Code

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

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

public class Main {

    public static boolean isEndOfSeason(Date date) {
        Calendar calendar = getCalender(date);
        int month = calendar.get(Calendar.MONTH) + 1;
        if (month % 3 == 2) {
            return true;
        }/*from   ww  w .ja  va 2 s .  c  o  m*/
        return false;
    }

    public static Calendar getCalender(Date date) {
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(date);
        return calendar;
    }
}

Related

  1. isBetWeenDates(Date in, Date from, Date to)
  2. isCalenderDaySame(GregorianCalendar aInCal1, GregorianCalendar aInCal2)
  3. isEndOfMonth(Date d)
  4. isEndOfMonth(Date date)
  5. isEndOfMonth(Date nowday)
  6. isEqualYMD(Date begindate, Date enddate)
  7. isIncludeDay(Date start, Date end, Date target)
  8. isInRange(Date myDate, Date dateStart, Date dateEnd)
  9. isInWorkDay(Calendar start)