Forum Discussion
grant_jenkins
Sep 30, 2022Steel Contributor
Change Published Date for News Post
We are converting some old announcements to News Posts and need to ensure that the Published Date is the same as what they were before. We can use PowerShell to change the First Published Date wh...
ganeshsanap
Sep 30, 2022MVP
grant_jenkins Are you talking about Publish Start Date?
You can add publish start date column to library view and then user below JSON formatting code on this column to edit date:
{
"elmType": "div",
"inlineEditField": "@currentField",
"txtContent": "@currentField"
}
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.
grant_jenkins
Sep 30, 2022Steel Contributor
Hi,
No this is not what I'm talking about. I'm talking about what's displayed on the actual News Post beneath the title as per the image - not what you can see in the list view.
There are two dates that drive a News Post - Publish Start Date (FirstPublishedDate) is set when you first publish the News Post, but the actual Published Date (Hidden field) is generated each time you publish the News Post. I want that to be changed to an older date (the date of the old announcements I'm converting to a News Post).
Have another look at the image I put in my first post and you'll see what I mean.
- ganeshsanapSep 30, 2022MVP
grant_jenkins As per the post - EDIT ORIGINAL PUBLISHING DATE IN SHAREPOINT NEWS POSTS:
Unfortunately, I have not found a way to update or replace the Publishing Date value with the First Publishing Date. For some reason this value cannot be updated and SystemUpdate also doesn’t work. While looking for the solution I think I read that it can be done using ShareGate, but I haven’t tried it.
Also check below thread using C# to update published date which might help you: How to display published date column in document library
Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.