Here you can find the source of getDaysLater(Date date, int days)
public static Date getDaysLater(Date date, int days)
//package com.java2s; //License from project: Apache License import java.sql.Date; import java.util.Calendar; public class Main { /**//from ww w.j a v a 2 s . co m * * get date days after date given * @param date * @param days * @return * Date * @throws */ public static Date getDaysLater(Date date, int days) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DAY_OF_MONTH, days); Date date2 = new Date(calendar.getTimeInMillis()); return date2; } }