Here you can find the source of addMonthsAndDays(Date date, int months, int days)
public static Date addMonthsAndDays(Date date, int months, int days)
//package com.java2s; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date addMonthsAndDays(Date date, int months, int days) { Calendar sysDate = new GregorianCalendar(); sysDate.setTime(date);//from ww w.j ava 2s . co m sysDate.add(Calendar.MONTH, months); sysDate.add(Calendar.DAY_OF_MONTH, days); return sysDate.getTime(); } }