
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