Umbraco 7 - How do I get the published date from IPublishedContent?
asp.net-mvc-4, c#, content-management-system, umbraco
Solution
Use the UpdateDate on IPublishedContent. That date is always updated when you publish content.
The ReleaseDate that you mention is used to set a future date and time for when a specific content item should be published (automatically). So that is not the date you are after. When a release date is set the UpdateDate will also be updated with this date once the item is published.
Problem
I am having trouble finding the published date. I working the Umbraco.Core.Models.IPublishedContent interface, which doesn't seem to have a published date, only a created and updated date. All the docs I found on the interwebs, suggest using Document(id), then Document.ReleasedDate, but this now marked obsolete. It suggests to use the ReleaseDate in Umbraco.Core.Models.Content class. What am I missing?