Here you can find the source of isEndOfSeason(Date date)
public static boolean isEndOfSeason(Date date)
//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; } }