日期格式转换
"Fri Aug 28 12:23:44 +0800 2009"--->"2009-08-28 12:23:44"
private static string TransDate(string strDate) { System.Globalization.CultureInfo cultureInfo = System.Globalization.CultureInfo.CreateSpecificCulture("en-US"); string format = "ddd MMM d HH:mm:ss zz00 yyyy"; DateTime dt = DateTime.ParseExact(strDate, format, cultureInfo); // 将字符串转换成日期 return dt.ToString("yyyy-MM-dd HH:mm:ss"); }