SyntaxFix
Write A Post
Hire A Developer
Questions
You may have to go from DateTime to LocalDate.
Using Joda Time:
DateTimeFormatter FORMATTER = DateTimeFormat.forPattern("yyyy-MMM-dd"); DateTime dateTime = FORMATTER.parseDateTime("2005-nov-12"); LocalDate localDate = dateTime.toLocalDate();