我需要格式化一个看起来像这样的字符串:"2018-07-20 18:53:46.598000 +02:00:00" 变成这样的 DateTime 对象:20/07/2018 (HH with Timezone applied):53:46我的方法是:String dateTimePattern = "dd/MM/yyyy HH:mm:ss";SimpleDateFormat dateTimeFormat = new SimpleDateFormat(dateTimePattern); Date feUltModDateTime = dateTimeFormat.parse(feUltMod);feUltMod = feUltModDateTime.toString();但我收到一个解析错误:java.text.ParseException: Unparseable date: "2018-07-20 18:53:46.598000 +02:00:00"
添加回答
举报
0/150
提交
取消