magento date
piaoling 2012-07-19 16:47:34
$date="2012-7-18 14:00:00";
$change= Mage::getModel('core/date')->gmtDate("Y-m-d H:i:s", $date);
Zend_Debug::dump($change);
Zend_Debug::dump(Mage::getModel('core/date')->date("Y-m-d H:i:s", $change));
die();
发表评论(评论将通过邮件发给作者):