Is there a way to set the field values โโof Created By or Created Date elements in Sitecore from code?
Created By
Created Date
thanks
Just update it using element fields, for example:
using (new Sitecore.SecurityModel.SecurityDisabler()) { item.Editing.BeginEdit(); item[Sitecore.FieldIDs.Created] = Sitecore.DateUtil.ToIsoDate(DateTime.Now); item.Editing.EndEdit(); }