Java tutorial
import java.util.Calendar; public class Main { public static void main(String[] args) { Calendar future = Calendar.getInstance(); future.set(Calendar.YEAR, 3010); Calendar now = Calendar.getInstance(); System.out.println("Is futureCal after now ? : " + future.after(now)); } }