Change date of the news items
Hello all,
Hi Vitaly,
The NewsItem has a public property PublicationDate that you can use to switch the publication date of the item. There is a property DateCreated - gets or sets the date and time the content was created. By default the date created in DateTime.UtcNow;
If you work programmatically you can use the fluent API
App.WorkWith().ContentItems().Where(ci => ci.Id == contentItemId).ForEach(ci =>
// set content item property here.
).SaveChanges();
Thank you for your help!