Here you can find the source of calculateDate(Date startDay, int days)
public static Date calculateDate(Date startDay, int days)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static Date calculateDate(Date startDay, int days) { Calendar cal = Calendar.getInstance(); cal.setTime(startDay);// w w w .ja v a 2 s . co m cal.add(Calendar.DAY_OF_YEAR, days); return cal.getTime(); } }