fields1.Add("LastModifiedDate", Convert.ToDateTime(txtLastModifiedDate.Text.Trim()));

解决方案 »

  1.   

    DateTime lastModifiedDate=DateTime.MinValue;
    if(DateTime.TryParse(txtLastModifiedDate.Text.Trim(), out lastModifiedDate))
       fields1.Add("LastModifiedDate", lastModifiedDate);
    else
       fields1.Add("LastModifiedDate", null);
      

  2.   

    只看这一句:
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.日期范围超出了?
      

  3.   

    要看fields1.Add的方法是什么了
      

  4.   

    能加个QQ告诉我 这是什么问题导致的吗?我也遇到了同样的问题 QQ:99082591