例如14位日期:20170417101215
转换DateTime格式:
var time="20170417101215";
var dateTime = DateTime.ParseExact(time, "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture);
2023-11-15 10:49:22
例如14位日期:20170417101215
转换DateTime格式:
var time="20170417101215";
var dateTime = DateTime.ParseExact(time, "yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture);