Here you can find the source of getTimeNextDay(Timestamp date)
public static Timestamp getTimeNextDay(Timestamp date)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; public class Main { public static Timestamp getTimeNextDay(Timestamp date) { long time = date.getTime(); time = time + 24 * 60 * 60 * 1000; return new Timestamp(time); }// ww w . j a v a2 s .c o m }