Here you can find the source of addDays(Date date, int days)
public static Date addDays(Date date, int days)
//package com.java2s; //License from project: Open Source License import java.sql.Date; public class Main { public static Date addDays(Date date, int days) { // TODO: Don't bother with a proper correction here, since it'll all be // taken care of in the SQL return new Date(date.getTime() + 1000 * 60 * 60 * 24 * days); }//w ww . jav a 2 s . c o m }