List of usage examples for java.time MonthDay parse
public static MonthDay parse(CharSequence text, DateTimeFormatter formatter)
From source file:Main.java
public static void main(String[] args) { MonthDay m = MonthDay.parse("10 10", DateTimeFormatter.ofPattern("M dd")); System.out.println(m);/*ww w.j a v a 2s. c om*/ }