将“2010年5月8日12时30分28秒”解析成一个Datetime对象
能给个代码例子么。谢谢
直接 Parse 即可,
DateTime dt = DateTime.Parse("2010年5月8日12时30分28秒", System.Globalization.CultureInfo.GetCultureInfo("zh-cn"));
问题要简单,错误须详细@错误/异常/堆栈信息+操作系统+软件版本+all the context of the issue Hope Helpful | http://www.leoworks.net