string s = "20160822 9:56"; string dt = DateTime.ParseExact(s, "yyyyMMdd H:mm", null).ToString("yyyy-MM-dd H:mm"); Response.Write(dt);
string s = "20160822 9:56"; string dt = DateTime.ParseExact(s, "yyyyMMdd H:mm", null).ToString("yyyy-MM-dd H:mm"); Response.Write(dt);
转载于:https://www.cnblogs.com/mchuang/p/5910023.html