I want to parse DateTime from a string. Here is my code:
String dateStr = "2016-08-18T14:44:56.225Z"
final String Pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'";
final DateTimeFormatter dtf = DateTimeFormat.forPattern(Pattern);
LocalDate dt = dtf.parseLocalDate(dateStr);
Then I only receive Year, Month and Day (2016-08-18) from the code above. I cannot get Hours, Minutes and Seconds.
Did anyone get this problem before? How did you solve that? I use Java 7.