I am using managed client object model in sharepoint and I am adding EventDate and on adding that I am catching exception which says Microsoft.SharePoint.SPFieldValueException
if (thisfield.StaticName.ToLower() == "eventdate"
|| thisfield.StaticName.ToLower() == "enddate")
newitem.ParseAndSetFieldValue(thisfield.InternalName, spitem[thisfield.StaticName].ToString());
Please let me know what should I do .
Thanks
code
if (thisfield.StaticName.ToLower() == "eventdate" || thisfield.StaticName.ToLower() == "enddate") newitem.ParseAndSetFieldValue(thisfield.InternalName, spitem[thisfield.StaticName].ToString());