I am attempting to format a desired joda time LocalDate type to a mmddyyy format and I am running into trouble and not sure how to proceed. I've tried a couple different things so far and had no luck.
So I pretty much want to take a date like 04-15-2016 and get a LocalDate type from it in format, 04152016, but it still needs to be in the LocalDate format, not a string.
DateTimeFormatter dtf = DateTimeFormat.forPattern("MMddyyyy");
LocalDate currentDate = LocalDate.parse("04152016", dtf);
System.out.println(currentDate);
The date comes out as 2016-04-15. If anyone could help me I would greatly appreciate it. Perhaps I am missing something fundamental when it comes to the Joda Time library.
THank you.