我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

PHP / Magento - 转换日期格式

This is on a magento RMA email template, Im trying to convert the date format from US to UK. I’ve tried the below but nothing renders out on the frontend - does anyone know where I am going wrong please?

<?php 
    $originalDate = "{{var rma.getDateForCollection()}}";
    $newDate = date("d-m-Y", strtotime($originalDate));
    echo $newDate;
?> 

近期文章

  • PHPStorm 10,XAMPP,Zend调试器
  • 从Redis获取时间范围内的数据
  • user_groups权限的替代方案?
  • 使用'select'选项提供输出[关闭]
  • PHP SoapClient - 调用未定义的函数
  • 保存Doctrine 1.2 Symfony 1.4后重定向
  • JAVA匿名类,小白求大神指导
  • Symfony表格选定的实体实体
  • Laravel - 错误时停止(特别是在View时)
  • PHP不区分大小写搜索文本文件
  • 在Model - Laravel中调用方法的正确方法
  • 无法让mySQL在我的xampp上运行
  • 复制粘贴链接到Facebook帖子不显示缩略图图像
  • 将下拉列表转换为组合框php - sql
  • Wordpress - 自定义分类的术语不会在选择下拉列表中显示
  • facebook登录wiht使用facebook-php-sdk-v4-5.0.0连接超时
  • 如何将两个不同的mySQL数据库配置合并为一个?
  • 在动态生成的不同php元素上调用相同的javascript函数
  • 在WordPress插件中设置cookie,cookie会自动删除
  • 表重复区域

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华