Magento

Friday, June 13, 2014

Magento - Display date in particular format

echo Mage::app()->getLocale()->date(strtotime($_order->getRegDate()), null, null, false)->toString('MM/dd/YYYY');

working formats : d/M/y
Posted by Hiren at 3:25 PM

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)
  • All Posts
  • How Magento ORM works?
  • Get Product Custom (Gallery) Image Attribute with Label
  • Increase Admin session timeout in magento
  • Magento - Indexing through command prompt
  • Magento database model without an auto_increment primary key
  • Get Magento Connect Extension Keys Without Logging...
  • Read image from third party FTP url and assign to ...
  • Magento admin panel auto login
  • Add Google Analytics tracking code on order succes...
  • Magento - catalog search by product name should re...
  • Magento - Assign Related Products programmatically...
  • Add links like rel=prev and rel=next to Magento’s ...
  • Import-Export Database (For Windows)
  • Import - Export using SSH
  • Get a list of all class rewrites
  • Working with large Magento collections

About Me

Hiren
Ahmedabad, Gujarat, India
View my complete profile
Picture Window theme. Powered by Blogger.