title: Can't parse String to LocalDate (Java 8)
body: <p>My input is a String representation of a date in the format "01-07-2015" for July 1, 2015. I'm trying to parse this into a <code>java.time.LocalDate</code> variable:</p>
  
  <pre><code>final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("dd-MM-YYYY");
  final String input = "01-07-2015";
  final LocalDate localDate = LocalDate.parse(input, DATE_FORMAT);
  </code></pre>
  
  <p>Based on the <a href="https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html"><code>DateTimeFormatter</code> JavaDoc</a>, I would expect this to work. However, I'm greeted with a very friendly and helpful message:</p>
  
  <blockquote>
    <p>Caused by: java.time.DateTimeException: Unable to obtain LocalDate from TemporalAccessor: {DayOfMonth=1, MonthOfYear=7, WeekBasedYear[WeekFields[MONDAY,4]]=2015},ISO of type java.time.format.Parsed</p>
  </blockquote>
  
  <p>I don't really understand what this exception is telling me. Can anyone explain me what's going wrong?</p>