public class Test {
public static void main(String[] args) {
String text = "2018-10-11T11:54:30.207Z";
DateTimeFormatter parser = ISODateTimeFormat.dateTime();
DateTime dt = parser.parseDateTime(text);
//转化成其他格式
//日期输出格式
String targetFormat = "yyyy-MM-dd HH:mm:ss";
DateFormat format = new SimpleDateFormat(origFormat);
Date date = format.parse(text);
format = new SimpleDateFormat(targetFormat);
String dateString = format.format(date);
System.out.println(dateString);