string str = "211218"; IFormatProvider ifp = new System.Globalization.CultureInfo("zh-CN", true); DateTime dt = DateTime.ParseExact(str, "yyMMdd", ifp);
string str = "211218"; IFormatProvider ifp = new System.Globalization.CultureInfo("zh-CN", true); DateTime dt = DateTime.ParseExact(str, "yyMMdd", ifp);