Get magento locale date/time from GMT timestamp / current time


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. date("Y-m-d", Mage::getModel('core/date')->timestamp(time()));
  2. //OR
  3. Mage::getModel('core/date')->date('Y-m-d H:i:s');

URL: http://www.swiftcore.com/en/magento/get-magento-locale-datetime-gmt-timestamp.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.