20100531转为2010-05-31
string str = "20100531";
DateTime dtime = DateTime.ParseExact(str,"yyyyMMdd",null);
Response.Write(dtime.ToString("yyyy-MM-dd"));
20100531转为2010-05-31
string str = "20100531";
DateTime dtime = DateTime.ParseExact(str,"yyyyMMdd",null);
Response.Write(dtime.ToString("yyyy-MM-dd"));