Last modified date for page

Permalink 1 user found helpful
How would I got about getting the last modified date for a page so that I can display it in the footer of every page. I tried, getCollectionDateLastModified(), but it doesn't seem to change the modified date if I change the text in say the content block and then publish my changes.

View Replies:
andrew replied on at Permalink Reply
What about this:

global $c;
$vo = $c->getVersionObject();
print $vo->getVersionDateCreated();

That will print out the date of the page's currently approved version.
CodeMonkey replied on at Permalink Reply
Sweet thanks!! That worked perfectly!