2
我使用toLocaleString()
方法得到這個輸出「16déc。2012 23:00:28」 然後當我想要取回日期時,我得到Unparseable date error
。在這裏打球SimpleDateFormat在android中的錯誤
String s = "16 déc. 2012 23:00:28";
SimpleDateFormat format = new SimpleDateFormat("dd MMM. yyyy HH:mm:ss");
Date d = format.parse(s);
http://stackoverflow.com/questions/13141511/how-to-get-time-from-simpledateformate-in-android –