Here you can find the source of nextDate(Date date)
public static Date nextDate(Date date)
//package com.java2s; import java.util.Date; public class Main { public static Date nextDate(Date date) { return new Date(date.getYear(), date.getMonth(), date.getDate() + 1); }//from w w w . j av a2 s . c om public static Date nextDate(long timeMilliSeconds) { return nextDate(new Date(timeMilliSeconds)); } }