The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
string format = “MMMM/dd/yyyy”;
change to
string format = “M/d/yyyy”;
Index and length must refer to a location within the string. Parameter name: length
string fulltext2 = dr["FullText2"].ToString();
Line 282:
Line 283: fulltext2 = fulltext2.Substring(0, 6);
Line 284:
Line 285: if (fulltext2 != “