string val = "1107291152";//2011-07-29 11:52
Console.WriteLine(DateTime.ParseExact(val, "yyMMddHHmm", null).ToString("yyyy-MM-dd HH:mm:ss"));
Console.WriteLine(DateTime.ParseExact(val, "yyMMddHHmm", null).ToString("yyyy-MM-dd HH:mm:ss"));
本文转自94cool博客园博客,原文链接:http://www.cnblogs.com/94cool/archive/2011/07/29/2121262.html,如需转载请自行联系原作者