Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用此代码来解析我的日期:
DateTime.ParseExact(someElement.Attribute("date").Value, "ddd MMM dd HH:mm:ss CEST yyyy", CultureInfo.InvariantCulture);
“日期”属性等于:Fri Nov 02 16:30:00 CET 2012
但我仍然得到这个错误,知道吗?
你有CEST你的格式字符串,但CST在你的实际日期属性中。
CEST
CST