Java Day End isEndOfMonth(Date date)

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

Description

is End Of Month

License

Open Source License

Declaration

public static boolean isEndOfMonth(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 isEndOfMonth(Date date) {
        Calendar cal = Calendar.getInstance();
        cal.setTime(date);//w ww .  ja  v  a  2  s.co  m
        cal.add(Calendar.DAY_OF_MONTH, 1);
        return 1 == cal.get(Calendar.DAY_OF_MONTH);
    }
}

Related

  1. getYearsBetweenDate(Date begin, Date end)
  2. isBetweenDate(Date date, Date startDate, Date endDate)
  3. isBetWeenDates(Date in, Date from, Date to)
  4. isCalenderDaySame(GregorianCalendar aInCal1, GregorianCalendar aInCal2)
  5. isEndOfMonth(Date d)
  6. isEndOfMonth(Date nowday)
  7. isEndOfSeason(Date date)
  8. isEqualYMD(Date begindate, Date enddate)
  9. isIncludeDay(Date start, Date end, Date target)