C# Code

string value = "Thu Jul 22 00:58:32 CST 2010";
                //分割出年、月、日、分、秒、时、星期
                string[] date = value.Split(new char[] { ' ', ':' }, StringSplitOptions.RemoveEmptyEntries);
                //生成本地日期字符串格式,GMT代表根据本地时区日期计算
                string datestr = string.Format("{0}, {1} {2} {3} {4}:{5}:{6} GMT", date[0], date[2], date[1], date[7], date[3], date[4], date[5]);
                DateTime dtt = Convert.ToDateTime(datestr);//转换成本地日期

                dtt = TimeZoneInfo.ConvertTimeToUtc(dtt);// 不加会相差8个小时
                //实际日期就出来了,是    星期四, 2010-01-07 01:08:03
                string str56 = dtt.ToString("yyyy-MM-dd HH:mm:ss");
                Console.Write(str56);

Java Code

SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

sdf.format(Date.parse("Thu Jul 22 00:58:32 CST 2010"));