Posted By

dmistriotis on 09/24/10


Tagged

date formatting magento


Versions (?)

magento display formatted date


 / Published in: PHP
 

Grabbed from parsing magento's source code

  1. $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
  2. var_dump(Mage::app()->getLocale()->date($DATE-TO-FORMAT)->toString($format));

Report this snippet  

You need to login to post a comment.