为什么我会收到此异常?
这是我的格式字符串:
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)