Here you can find the source of getNextMonthDate(Date appointDate)
public static Date getNextMonthDate(Date appointDate)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date getNextMonthDate(Date appointDate) { Calendar appointCalendar = Calendar.getInstance(); appointCalendar.setTime(appointDate); Calendar lastDate = Calendar.getInstance(); lastDate.set(Calendar.DATE, appointCalendar.get(Calendar.DATE));// lastDate.set(Calendar.MONTH, appointCalendar.get(Calendar.MONTH) + 1); lastDate.set(Calendar.YEAR, appointCalendar.get(Calendar.YEAR)); return lastDate.getTime(); }// w ww. ja va 2s . c om }