- String text = "Fri Apr 24 19:00:58 CST 2015";
- DateFormat formate1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
- DateFormat formate2 = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy",Locale.ENGLISH);
- Date date = formate2.parse(text);
- String dateString = formate1.format(date);
- System.out.println(dateString);
转载:http://iamyida.iteye.com/blog/2207676