3
我在从一个字符串解析日期的异常:Java的日期解析问题
java.text.ParseException:无法解析的日期:“2013年5月16日19时27分十二秒”(在 偏移3)
,但我认为我是使用正确的模式:
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm:ss");
try {
done = true;
date = simpleDateFormat.parse(dateString);
} catch (ParseException e) {
e.printStackTrace();
done = false;
}
if (done) {
return date;
}
有人能帮忙吗?我究竟做错了什么?