我有如下代码将字符串转换为日期:
DateTimeFormatter formatter = org.joda.time.format.DateTimeFormat.forPattern("MM/dd/yyyy");
LocalDate checkInDate = LocalDate.parse("08/25/2015");
但是当我运行代码时出现错误:
java.lang.IllegalArgumentException:无效格式:“08/25/2015”在“/25/2015”处格式错误
任何人都可以帮我解决这个问题。