Test your website performance for free
Test your website performance

publishedAt()

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

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.