Tag Archives: date

Magento Date

As we known we are setting Magento date and time through admin which is  configured from the backend (System > Configuration > General > Locale Options > Timezone) for formatting/displaying date/time.We used in PHP $currenttime = time() echo $date = date(d-m-Y,$currenttime); ?> We used for magento $currenttime = Mage::getModel(‘core/date’)->timestamp(); echo $date = date(d-m-Y,$currenttime); ?> Display ccurrent… Read More »