Here you can find the source of getAfterDay(Date date, Integer day)
public static Date getAfterDay(Date date, Integer day)
//package com.java2s; //License from project: Open Source License import java.util.Calendar; import java.util.Date; public class Main { public static Date getAfterDay(Date date, Integer day) { if (null == date) { return null; }/* www .ja v a2 s . co m*/ if (null == day) { return date; } else { Calendar now = Calendar.getInstance(); now.setTime(date); now.set(Calendar.DATE, now.get(Calendar.DATE) + day); return now.getTime(); } } }