magento显示格式化日期

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了magento显示格式化日期相关的知识,希望对你有一定的参考价值。

Grabbed from parsing magento's source code
  1. $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_MEDIUM);
  2. var_dump(Mage::app()->getLocale()->date($DATE-TO-FORMAT)->toString($format));

以上是关于magento显示格式化日期的主要内容,如果未能解决你的问题,请参考以下文章

如何从我的 DatePicker 片段中传输格式化的日期字符串?

Magento的SEO丰富片段

如何过滤日期的Magento集合或null

java字符串格式转换成日期格式

Magento:删除产品特价“从”和“到”日期要求

常用python日期日志获取内容循环的代码片段