I want to translate the displayed date into Dutch.
My current code looks like this:
<?php
$post = $this->getPost();
$date = Mage::getModel('core/date');
?>
<span class="date"><?php echo $date->date('d F Y', $post->getCreatedTime()); ?></span>
But that does display the date as 07 March 2016
. I want to translate the Month to Dutch, so it will be 7 Maart 2016
.
How can I achieve that?
Best Answer
Mage_Core_Helper_Data::format()
it will format the date according to the locale settings.reference for understanding the date better