Java tutorial
import java.time.MonthDay; import java.time.format.DateTimeFormatter; public class Main { public static void main(String[] args) { MonthDay m = MonthDay.parse("10 10", DateTimeFormatter.ofPattern("M dd")); System.out.println(m); } }