string 2 datetime with DateTime.ParseExact

string val="130201121212";

DateTime ss = DateTime.ParseExact(val, "yyMMddHHmmss", new CultureInfo("zh-CN"));

posted @ 2013-02-18 15:10  94cool  阅读(145)  评论(0编辑  收藏  举报