Java tutorial
import java.util.Calendar; import java.util.Date; public class Main { public static void main(String[] args) { Date today = new Date(); Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.DATE, 1); Date tomorrow = calendar.getTime(); if (tomorrow.after(today)) { System.out.println(tomorrow + " is after " + today); } } }