Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Calendar; import java.util.Locale; public class Main { public static boolean isTomorrow(Calendar cal) { Calendar tomorrow = Calendar.getInstance(Locale.getDefault()); tomorrow.roll(Calendar.DAY_OF_YEAR, true); return cal.get(Calendar.DAY_OF_YEAR) == tomorrow.get(Calendar.DAY_OF_YEAR) && cal.get(Calendar.YEAR) == tomorrow.get(Calendar.YEAR); } }