How to format the date "Oct 06" in the Java JodaTime?

Is the date "Oct 06", I tried to format like this:
DateTime to_date = DateTimeFormat.forPattern("M d").parseDateTime(massive.get(i).date);

But it is not working, I get:
Exception in thread "main" java.lang.IllegalArgumentException: Invalid format: "Oct 06"

Like all documentation, "M" => month, d => day of the month, but does not work(
June 14th 19 at 19:04
1 answer
June 14th 19 at 19:06
Solution
For sure the current locale is Russian, so M is expected "Oct", not "Oct". But you can explicitly specify the locale:
DateTimeFormat
 .forPattern("M d")
.withLocale(Locale.US)
 .parseDateTime(massive.get(i).date);
Well, only here how so only the month and day, is necessary to make the month and day were taken from massive.get(i).date and year current - dereck.Hagen commented on June 14th 19 at 19:09

Find more questions by tags JavaParsingStandardizationWork with date / time