//将英文月份的时间"Mar 5 06:14:17 2014",转为2014-03-05 06:14:17
date="Mar 5 06:14:17 2014";
SimpleDateFormat sdf = new SimpleDateFormat("MMMM dd HH:mm:ss yyyy",Locale.US);
SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss",Locale.US); try {
//sdf.parse(date)字符串转日期,sdf2.format()再日期转字符串.
date=sdf2.format(sdf.parse(date));
} catch (ParseException e1) {
e1.printStackTrace();
}