string stringDate = "Mon May 01 2000 00:00:00 GMT+0800 (China Standard Time)"
我试过这个,但它不工作。
string date = "Mon May 01 2000 00:00:00 GMT+0800 (China Standard Time)";
DateTime dt = Convert.ToDateTime(date);
我也试过这个,但同样的错误:
DateTime dt = DateTime.ParseExact(stringDate, "yyyyMMdd", System.Globalization.CultureInfo.InvariantCulture);