Java Month Calculate isMonthEnd(Date date)

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

Description

is Month End

License

Apache License

Declaration

public static boolean isMonthEnd(Date date) 

Method Source Code

//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;
    }
}

Related

  1. getThisMonthEnd()
  2. getThisMonthStart()
  3. incrementMonth(long date, int increment)
  4. intToCalendarMonth(int month)
  5. isFirstOfMonth(long date)
  6. isSameMonth(final Calendar c1, final Calendar c2)
  7. monthsBetween(String pFormerStr, String pLatterStr)
  8. nextMonth(Date date, int months)
  9. nextMonths(int diff)