Java tutorial
//package com.java2s; import java.util.Calendar; import java.util.GregorianCalendar; public class Main { public static Calendar tomorrow() { Calendar tomorrow = new GregorianCalendar(); tomorrow.set(Calendar.HOUR_OF_DAY, 0); tomorrow.set(Calendar.MINUTE, 0); tomorrow.set(Calendar.SECOND, 0); tomorrow.set(Calendar.MILLISECOND, 0); tomorrow.add(Calendar.DAY_OF_MONTH, 1); return tomorrow; } }