Java Month Calculate getDateMonthShift(int Shift)

Here you can find the source of getDateMonthShift(int Shift)

Description

get Date Month Shift

License

Open Source License

Declaration

public static Date getDateMonthShift(int Shift) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.*;

public class Main {
    public static Date gamedate = new Date();

    public static Date getDateMonthShift(int Shift) {
        Calendar tempcalendar = GregorianCalendar.getInstance();
        tempcalendar.setTime(gamedate);//from w ww  .  j  a va2 s.  com
        tempcalendar.add(Calendar.MONTH, Shift);
        return tempcalendar.getTime();

    }
}

Related

  1. getAgeInMonths(Date startDate, Date endDate)
  2. getAlphaMonth(String mon)
  3. getCurrentMonth()
  4. getCurrentMonth()
  5. getCurrentMonthName()
  6. getDiffInMonths(Date firstDate, Date lastDate)
  7. getDisplayMonth(int month)
  8. getIntMonthShift(Date Shift)
  9. getlastDateofThisMonth()