怎么把时间2007-06-01 转换成20070601怎么把时间2007-06-01 转换成20070601[解决办法]C# codestring test
怎么把时间2007-06-01 转换成20070601
怎么把时间2007-06-01 转换成20070601
[解决办法]
- C# code
string test = "2007-06-01";DateTime dt = DateTime.Parse(test);string date = dt.ToString("yyyyMMdd");//或者string test = "2007-06-01";string date = test.Replace("-", ""); 