How to format the date returned from getCollectionDatePublic()
Permalink 3 users found helpful
Does anyone know how to change the format of the date return by this method?
I would like to add the day to the begining, for example Saturday, 6 June, 2015
or 6 June, 2015.
$page = Page::getCurrentPage(); $date = Core::make('helper/date')->formatDate($page->getCollectionDatePublic(), true); print $date
I would like to add the day to the begining, for example Saturday, 6 June, 2015
or 6 June, 2015.

You can try this.
Or
$datePublic = $c->getCollectionDatePublicObject()->format('j F, Y');
I don't think I've seen that before.
Thank you, Hissy.
Thank you, Hissy.
THANK YOU!!!!!