Hello
I have the following code on a magento site which outputs a date based on a stored attribute>
The code is:
<?php echo $this->__('Best Before: ') ?> <?php echo $_helper->productAttribute($_product, $_product->getBestbefore(), 'bestbefore') ?>The resulting output is:
BEST BEFORE: 2015-08-16 00:00:00
I’d like to format the output to show this
BEST BEFORE: 16-08-2015
Can any help me alter the PHP code to create this date format
Many thanks…