I have a code as below to convert a string to date:
DateTimeFormatter formatter = org.joda.time.format.DateTimeFormat.forPattern("MM/dd/yyyy");
LocalDate checkInDate = LocalDate.parse("08/25/2015");
But when i run the code there is an error:
java.lang.IllegalArgumentException: Invalid format: "08/25/2015" is malformed at "/25/2015"
Anyone can help me resolve this problem.