Java Date After getDateAfterMonths(Date start, int months)

Here you can find the source of getDateAfterMonths(Date start, int months)

Description

get Date After Months

License

Open Source License

Declaration

public static Date getDateAfterMonths(Date start, int months) 

Method Source Code

//package com.java2s;

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

public class Main {
    public static Date getDateAfterMonths(Date start, int months) {
        return add(2, months, start);
    }/*  ww w  .j  a v  a 2  s  .c o  m*/

    private static Date add(int datePart, int detal, Date date) {
        Calendar c = Calendar.getInstance();
        if (date != null)
            c.setTime(date);
        c.add(datePart, detal);
        return c.getTime();
    }
}

Related

  1. getAfterMin(Date date, int min)
  2. getDateAfter(Date d, int day)
  3. getDateAfter(Date date, int days)
  4. getDateAfter(Date date, int increment)
  5. getDateAfterAddition(Date date, int days)
  6. getDateScopeAfterMonth(int year, int month)
  7. getDateTimeAfter(final Date _from, final int _time_type, final int _count)
  8. getMonthAfter(final Date _from, final int _mons)
  9. getNDayAfterCurrentDate(int n)