The following code gives errorobjMovedDocument.SetAttributeByID(imProfileAttributeID.imProfileCustom6, DateTime.Now())