【发布时间】:2013-06-10 12:00:53
【问题描述】:
我得到这种格式的日期14-MAY-13 01.17.16.250000 PM 和
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd-MMM-yy hh:mm:ss aaa");
simpleDateFormat.parse("14-MAY-13 01.17.16.250000 PM")
给我这个例外
java.text.ParseException: Unparseable date: "14-MAY-13 01.17.16.250000 PM" ..simpledateformat应该是什么格式?
【问题讨论】:
-
你的字符串格式和格式不匹配。
标签: java date-format simpledateformat