我认为您的日期格式没有意义。没有13:00 PM。删除格式末尾的“ aaa”,或将HH转换为hh。
不过,这对我来说很好:
String testDate = "29-Apr-2010,13:00:14 PM";DateFormat formatter = new SimpleDateFormat("d-MMM-yyyy,HH:mm:ss aaa");Date date = formatter.parse(testDate);System.out.println(date);它将打印“ 2010年4月29日星期四CEST”。



