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.*; public class Main { public static Date addMonthsAndDays(Date date, int months, int days) { Calendar sysDate = new GregorianCalendar(); sysDate.setTime(date);/*from ww w .j a v a 2 s .co m*/ sysDate.add(Calendar.MONTH, months); sysDate.add(Calendar.DAY_OF_MONTH, days); return sysDate.getTime(); } }