Measurable Success «10 Checkpoints for Future-Proof Enterprise CMS» White Paper
Measurable Success - White Paper

publishedAt()

Returns the date on which an unmodified CMS object was most recently published.

obj = Scrivito.currentPage()
console.log(obj.publishedAt())

This returns null for a modified object or if the date is missing, otherwise it returns the date on which the object was last published.

Returns

Date or null

Remarks

In a working copy, the method returns null for modified objects as they are treated as if they are going to be published in the future.