Java Day End isMoreThenMonth(Date startDate, Date enDate)

Here you can find the source of isMoreThenMonth(Date startDate, Date enDate)

Description

is More Then Month

License

Open Source License

Parameter

Parameter Description
startDate a parameter
enDate a parameter

Exception

Parameter Description

Declaration

public static boolean isMoreThenMonth(Date startDate, Date enDate) 

Method Source Code

//package com.java2s;

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

public class Main {

    public static boolean isMoreThenMonth(Date startDate, Date enDate) {
        Calendar c = Calendar.getInstance();
        c.setTime(startDate);// w w w  .jav a 2  s.c  o m
        c.add(Calendar.MONTH, 1);
        if (enDate.getTime() - c.getTimeInMillis() >= 0) {
            return true;
        } else {
            return false;
        }
    }
}

Related

  1. isEndOfSeason(Date date)
  2. isEqualYMD(Date begindate, Date enddate)
  3. isIncludeDay(Date start, Date end, Date target)
  4. isInRange(Date myDate, Date dateStart, Date dateEnd)
  5. isInWorkDay(Calendar start)
  6. isNowBetween(Date start, Date end)
  7. isSameDay(Calendar cal1, Calendar cal2)
  8. isSameDay(final Calendar calendar1, final Calendar calendar2)
  9. isTodayWithinPeriod(Date periodStart, Date periodEnd)