DateTime dt = DateTime.ParseExact("20060709110901","yyyyMMddHHmmss", System.Globalization.CultureInfo.CurrentCulture);
或者这样
var ReadyBeginTime = request.PrehotDate.Trim().ConvertToNullableDateTime("yyyyMMddHHmmss");
if (ReadyBeginTime.HasValue) { creating.ReadyBeginTime = ReadyBeginTime.Value; } else { return result.IsFailure("预热开始时间不能为空!"); }