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 java.time.LocalDate variable:
java.time.LocalDate
For year you have to use the lowercase y:
final DateTimeFormatter DATE_FORMAT = DateTimeFormatter.ofPattern("dd-MM-yyyy");
Uppercase Y is used for weekyear. See the javadoc of DateTimeFormatter for more details.