Here you can find the source of nextDate(long timeMilliSeconds)
public static Date nextDate(long timeMilliSeconds)
//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 ww . j a v a 2 s . c om*/ public static Date nextDate(long timeMilliSeconds) { return nextDate(new Date(timeMilliSeconds)); } }