From a LocalDate I want to get only the month-year string.
E.g “March 2015”
Right now I do it as follows:
myDate.monthOfYear().getAsText(LOCALE) + " " + myDate.year().getAsText(LOCALE);
Is there a simpler/better way to do it?
Yes - just create an appropriate formatter:
DateTimeFormatter formatter = DateTimeFormat
.forPattern("MMMM yyyy")
.withLocale(LOCALE);
String text = formatter.print(myDate);
See more on this question at Stackoverflow