Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.Date; public class Main { /** * ????date???n??????? */ public static Date getDateAfter(Date date, int n) { Calendar now = Calendar.getInstance(); now.setTime(date); now.set(Calendar.DATE, now.get(Calendar.DATE) + n); return now.getTime(); } }