How to show Public Date/Time instead of created date
Permalink 1 user found helpful
Hi,
I'm creating a news section and using the Page View block with a custom template to list all the news items pages on the main news page - just the date, item title and description.
Unfortunately the date that's displayed against each news item is the date the item was created, but I want to use the date and time that's entered in the Public Date/Time field on the Page Properties dialog when that page is created/edited.
The command I'm using to return the creation date is:
What command should I replace getCollectionDateAdded with to fetch the right value?
Thanks in advance for all help,
Tony.
I'm creating a news section and using the Page View block with a custom template to list all the news items pages on the main news page - just the date, item title and description.
Unfortunately the date that's displayed against each news item is the date the item was created, but I want to use the date and time that's entered in the Public Date/Time field on the Page Properties dialog when that page is created/edited.
The command I'm using to return the creation date is:
<?php echo $cobj->getCollectionDateAdded('l, F jS, Y') ?>
What command should I replace getCollectionDateAdded with to fetch the right value?
Thanks in advance for all help,
Tony.