Here you can find the source of getNextMonthsByStartDate(Date date, int month)
public static Date getNextMonthsByStartDate(Date date, int month)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; public class Main { public static Date getNextMonthsByStartDate(Date date, int month) { GregorianCalendar calendar = new GregorianCalendar(); calendar.setTime(date);/*from w ww. j a v a 2s.c o m*/ calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); calendar.add(Calendar.MONTH, month); return calendar.getTime(); } }