Retrieves content published date.
- Full name:
the_published_date - Defined in:
cms/core/Shared/Helpers/content.php
Parameters
| Parameter | Type | Description |
|---|---|---|
$contentId |
string | Content id. |
$format |
string | Format to use for retrieving the date the content was published. |
| Accepts 'G', 'U', or php date format value specified | ||
| in 'date_format' option. Default empty. |
Return Value
string
Formatted content published date string or Unix timestamp if $format is 'U' or 'G'. '' on failure.