C# string "yyMMdd" 转DataTime
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);