Magento有个日期时间格式化函数formatDate,位于app/code/core/Mage/Core/Helper/Data.php中,具体自己去看看,使用
echo $this->formatDate($_order->getCreatedAtStoreDate(), 'medium', true)
当然,你可以尝试下full或者long格式。
还有种写法
Mage::app()->getLocale()->date($creditMemo->getCreatedAt())->toString('YYYY-MM-dd');