-1

入力テキストは 20FEB2020 です

次のコード ブロックはDateTimeParseException、メッセージText '28Feb2020' could not be parsed, unparsed text found at index 7をスローします。

String issueDate = abcIssueDate.substring(0, 3)
                  + abcIssueDate.substring(3).toLowerCase();
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("ddMMMyy", Locale.US);
LocalDate localDate = LocalDate.parse(issueDate, formatter);
4

1 に答える 1