Here you can find the source of plusDaysToday(int days)
public static Date plusDaysToday(int days)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date plusDaysToday(int days) { return plusDays(getToday(), days); }//from w ww . j a v a2s. c om public static Date plusDays(Date date, int days) { return changeDays(date, days); } public static Date getToday() { return new Date(); } private static Date changeDays(Date date, int days) { Calendar cal = Calendar.getInstance(); cal.setTime(date); cal.add(Calendar.DAY_OF_YEAR, days); return cal.getTime(); } }