Here you can find the source of isMonthEnd(Date date)
public static boolean isMonthEnd(Date date)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static boolean isMonthEnd(Date date) { Calendar cal = Calendar.getInstance(); cal.setTime(date);/*from www . java2 s. c om*/ if (cal.get(Calendar.DATE) == cal.getActualMaximum(Calendar.DAY_OF_MONTH)) return true; else return false; } }