Java tutorial
import java.time.LocalDate; import java.time.MonthDay; public class Main { public static void main(String[] argv) { LocalDate dateOfBirth = LocalDate.now(); MonthDay birthday = MonthDay.of(dateOfBirth.getMonth(), dateOfBirth.getDayOfMonth()); MonthDay currentMonthDay = MonthDay.from(LocalDate.now()); if (currentMonthDay.equals(birthday)) { System.out.println("Yes!!"); } else { System.out.println("Sorry, today is not your birthday"); } } }