|
Relates :
|
System.out.println(
DateTimeFormatter.ofPattern("u-M-d").format(
DateTimeFormatter.ofPattern("Gy���M���d���")
.withChronology(JapaneseChronology.INSTANCE)
.parse("������31���5���1���")));
System.out.println(
new SimpleDateFormat("Y-M-d", Locale.US).format(
new SimpleDateFormat("Gy���M���d���", new Locale("ja","JP","JP"))
.parse("������31���5���1���")))
Expected Result:
java.time.format.DateTimeParseException
java.text.ParseException
Actual Result:
2019-5-1
2019-5-1
|