string BoxCode = "X20171215090101"; DateTime t = DateTime.ParseExact(BoxCode.Substring(1, 14), "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture).AddDays(-i);
string BoxCode = "X20171215090101"; DateTime t = DateTime.ParseExact(BoxCode.Substring(1, 14), "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture).AddDays(-i);
转载于:https://www.cnblogs.com/wsxkit/p/10907535.html