import java.time.LocalDate; import java.time.ZoneId; class App { public static void main(String[] args) { LocalDate localDate = LocalDate.parse("2023-04-05"); System.out.println(localDate.getMonthValue()); System.out.println(localDate.getYear()); LocalDate most = LocalDate.now(ZoneId.of("GMT+2")); System.out.println(most); if(localDate.isBefore(most)) { System.out.println("előtte van"); }else { System.out.println("utána van"); } } }