string val = "1107291152";//2011-07-29 11:52 Console.WriteLine(DateTime.ParseExact(val, "yyMMddHHmm", null).ToString("yyyy-MM-dd HH:mm:ss"));