Joda-Time is without a doubt the best way to work with dates and times in Java, unless you happen to be working exclusively on Java 8+, where you can use the new java.time library, also known as JSR 310. With Joda you can easily parse dates, times and timestamps using DateTimeFormatter. For example you can use: DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd"); LocalDate date = formatter.parseLocalDate("2015-12-25"); assertEquals(2015, date.getYear()); assertEquals(12, dat...