Public date in other language then English

Permalink
When getting the public date in a page template. It's always in English.
Using this code:
$collectionDate = strtotime($c->getCollectionDatePublic());
$date = date("d F Y", $collectionDate); 
echo $date;


How do I get it working in a multi-language site?

Dutchwave
 
ConcreteOwl replied on at Permalink Reply
ConcreteOwl
Possibly..
$date = date("d m Y", $collectionDate);
Dutchwave replied on at Permalink Reply
Dutchwave
$dh = Core::make('helper/date');
$date = $dh->formatDateTime($page->getCollectionDatePublic(), true);
$date = $dh->formatCustom('j F Y', strtotime($page->getCollectionDatePublic()));


This seemed to do it.