Here you can find the source of addDays(Timestamp date, int days)
public static Timestamp addDays(Timestamp date, int days)
//package com.java2s; import java.sql.Timestamp; import java.util.Calendar; public class Main { public static Timestamp addDays(Timestamp date, int days) { Calendar cal = Calendar.getInstance(); cal.setTime(date);// w ww. j ava 2 s .co m cal.add(Calendar.DATE, days); //minus number would decrement the days return new Timestamp(cal.getTime().getTime()); } }