Java Date Time Java Java API
java.time.LocalDate
public boolean isAfter(ChronoLocalDate other)
If this date is after the specified date this method returns true, otherwise returns false
package com.logicbig.example.localdate;import java.time.LocalDate;import java.time.Month;public class IsAfterExample { public static void main (String... args) { LocalDate d = LocalDate.of(2000, Month.JANUARY, 1); boolean b = d.isAfter(LocalDate.of(2016, 1, 2) .minusDays(8000)); System.out.println(b); }}
true