2
爲什麼我得到這個異常?ParseException:無法解析的日期
這裏是我的格式字符串:
SimpleDateFormat parser = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");
這裏是我想格式化字符串:
2012-12-29T23:59:00-05:00
,但我得到以下異常:
java.text.ParseException: Unparseable date: "2012-12-29T23:59:00-05:00"
at java.text.DateFormat.parse(DateFormat.java:337)
at objectmodels.Checkout.setDueDate(Checkout.java:72)
at threads.AccountNotifyThread.lookupAccountInfo(AccountNotifyThread.java:220)
at threads.AccountNotifyThread.performNotificationsForUser(AccountNotifyThread.java:65)
at threads.AccountNotifyThread.run(AccountNotifyThread.java:42)
at java.lang.Thread.run(Thread.java:680)
對於該時區將不得不'GMT-05:00' –