Android examples for java.util:Month
add Month to Date
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { public static Date addMonth(Date date, int months) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date);/*from w ww. j a va2s .co m*/ calendar.add(Calendar.MONTH, months); return calendar.getTime(); } }