日期:2014-05-17 浏览次数:20819 次
string dateString = "201312061030";
DateTime dt = DateTime.ParseExact(dateString, "yyyyMMddHHmm", new CultureInfo("zh-CN"));
this.dateTimePicker1.Format = DateTimePickerFormat.Custom;
this.dateTimePicker1.CustomFormat = "yyyy-MM-dd HH:mm";
this.dateTimePicker1.Value = dt;