Here you can find the source of addDaysToCurrentDate(Integer dayIncrement)
public static Date addDaysToCurrentDate(Integer dayIncrement)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static Date addDaysToCurrentDate(Integer dayIncrement) { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.SECOND, 0); calendar.set(Calendar.MILLISECOND, 0); calendar.add(Calendar.DATE, dayIncrement); return calendar.getTime(); }/* www . j a v a 2 s . c o m*/ }