Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { /** * This method adds days to a date * * @param date the date. * @param days the number of days to add. */ public static Date getDateAfterAddition(Date date, int days) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DATE, days); return cal.getTime(); } }