Wednesday, August 5, 2015

Get current datetime in magento

$current_datetime=date("Y-m-d H:i:s", Mage::getModel('core/date')->timestamp(time()));

No comments:

Post a Comment

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...