Here you can find the source of nextDay(Date date)
public static Date nextDay(Date date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Date; public class Main { public static Date nextDay() { return dateAdd(new Date(), 1); }//from ww w .j av a 2 s . c o m public static Date nextDay(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DAY_OF_MONTH, 1); date = calendar.getTime(); return date; } public static Date dateAdd(Date date, int val) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); calendar.add(Calendar.DAY_OF_MONTH, val); date = calendar.getTime(); return date; } }