int year = Integer.parseInt(month.substring(0, 4));
int month1 = Integer.parseInt(month.substring(5, 7));
int max = LocalDate.of(year, month1, 1).lengthOfMonth();
————————————————
int year = Integer.parseInt(month.substring(0, 4));
int month1 = Integer.parseInt(month.substring(5, 7));
int max = LocalDate.of(year, month1, 1).lengthOfMonth();
————————————————