How do I get the DateTime that a page was last published in Sitefinity?

Posted by travis on Stack Overflow See other posts from Stack Overflow or by travis
Published on 2010-04-16T19:19:23Z Indexed on 2010/04/16 19:23 UTC
Read the original article Hit count: 474

Filed under:
|
|
|

Here is what I have:

Dim cmsManager As New Telerik.Cms.CmsManager()
Dim currentNode As Telerik.Cms.Web.CmsSiteMapNode = CType(SiteMap.CurrentNode, Telerik.Cms.Web.CmsSiteMapNode)
Dim currentPage As Telerik.Cms.ICmsPage = currentNode.GetCmsPage()
Dim currentPageId As Guid = currentPage.ID
Dim pageFromDb As Telerik.Cms.IPage = cmsManager.GetPage(currentPageId)

Me.LastUpdateDate = pageFromDb.DateModified

Unfortunately .DateModified returns the last time that a page was edited instead of when it was last published. I've been looking through the documentation but I haven't been able to fins any corresponding properties.

© Stack Overflow or respective owner

Related posts about sitefinity

Related posts about vb.net