SyntaxFix
Write A Post
Hire A Developer
Questions
As you use Joda Time, you should use DateTimeFormatter:
DateTimeFormatter
final DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MMM-dd"); final LocalDate dt = dtf.parseLocalDate(yourinput);
If using Java 8 or later, then refer to hertzi's answer