Here you can find the source of getDateUpDay(Date d)
public static Date getDateUpDay(Date d)
//package com.java2s; //License from project: Apache License import java.util.*; public class Main { public static Date getDateUpDay(Date d) { if (d != null) { Calendar a = Calendar.getInstance(); a.setTime(d);//from w w w . j a v a2s.co m a.add(Calendar.DATE, +1); d = a.getTime(); } return (d); } }