请问如何把这个字符串转换成日期型?"20060102 " -> DateTime 多谢[解决办法]DateTime.ParseExact( "20060102 ", "yyyyMMdd ", null)[解决办法]楼上的。