如何解析此日期格式:
日期:
String previousTime = 2013-08-07T00:00:00.000-07:00
我试过了,
DateTimeFormatter formatter = DateTimeFormat.forPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'");
currentDate = formatter.parseDateTime(previousTime);
但是这给了IllegalArgumentException,
08-22 18:31:41.207: E/AndroidRuntime(17300): java.lang.IllegalArgumentException: Invalid format: "2013-08-07T00:00:00.000-07:00" is malformed at "-07:00"
08-22 18:31:41.207: E/AndroidRuntime(17300): at org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:683)