先说下内容页样式:

日期:{field:pubdate function=strftime('m-d',@me)/} 01-01

日期:{field:pubdate function=strftime('m月d日',@me)/} 01月01日

日期:{field:pubdate function=strftime('d日',@me)/} 01日

日期:{field:pubdate function=strftime('Y-m-d',@me)/} 2012-01-01

日期:{field:pubdate function=strftime('y-m-d',@me)/} 12-01-01

日期:[field:pubdate function='strftime("%Y-%m-%d %H:%M:%S",@me)'/]  2008-11-01 11:11:52

日期:[field:pubdate function='strftime("%y-%m-%d %H:%M:%S",@me)'/]   08-11-01 11:11:52

日期:[field:pubdate function='strftime("%b %d, %Y",@me)'/]    Nov 01, 2008

日期:[field:pubdate function='strftime("%A on %b %d, %Y, %X : %Z",@me)'/]   Saturday on Nov 01, 2008, 11:21:06 : 中国标准时间

那列表页和主页的样式就需要转换一下了!修改成如下:

日期:[field:pubdate function="MyDate('m-d',@me)"/] 01-01

日期:[field:pubdate function="MyDate('m月d日',@me)"/]  01月01日

日期:[field:pubdate function="MyDate('d日',@me)"/] 01日

日期:[field:pubdate function="MyDate('Y-m-d',@me)"/] 2012-01-01

日期:[field:pubdate function="MyDate('y-m-d',@me)"/] 12-01-01

下面 举一个例子:

<span class="date">[field:pubdate function="MyDate('d',@me)"/]<u>[field:pubdate function='strftime("%b",@me)'/]</u></span>

效果如图所示:

dedecms 时间标签strftime和MyDate的更多相关文章

  1. dede时间标签

    dedecms首页时间标签:1.12-27 样式([field:pubdate function='strftime("%m-%d",@me)'/]) 2.May 15, 2009 ...

  2. 织梦dedecms单标签、双标签

    标签是dedecms的核心,dedecms的标签也跟html标签一样,同样分单标签和双标签. 我不会讲单标签有那些,双标签有那些,也不会叫大家去背那些是单标签,那些是双标签.如果去背这些标签,这样学起 ...

  3. ask 调用时间标签

    织梦时间调用标签大全(2012-08-03 12:50:13) 转载▼   分类: 织梦 织梦首页时间标签1,11-20 样式([field:pubdate  function='strftime(& ...

  4. winrar在右键菜单上加上:打包自动加上日期时间标签【图文教程】 - imsoft.cnblogs

    说明:  注册表HKEY_CURRENT_USER\Software\WinRAR\Profiles\0找到GenerateArcName修改0为1,修改GenerateMask为你想要的日期式(默认 ...

  5. PHPCMS V9调用时间标签 |日期时间格式化

    PHPCMS V9 如何调用时间标签,下面分享常见的调用时间标签 |日期时间格式化  1.日期时间格式化显示: a标准型:{date('Y-m-d H:i:s', $rs['inputtime'])} ...

  6. (转)DedeCms Runphp 标签中调用其他变量的方法

    DedeCms Runphp 标签中调用其他变量的方法 我们都知道,在DedeCMS中是可以使用PHP的,常见的方法就是if else了,例如模板制作中,我们需要对来源和作者进行判断,如果为空,则提示 ...

  7. dedecms 图集标签{dede:productimagelist} {dede:field name='imgurls'}&nbs

    1.{dede:productimagelist}{/dede:productimagelist} 2.{dede:field name='imgurls'}{/dede:field} 这两个图集标签 ...

  8. PHPCMS V9 全站通用日期时间标签

    用PHPCMS V9 建站时,经常会用到时间标签,它是通用标签调用-日期时间格式化,适用全站. 1.日期时间格式化显示: a\标准型:{date('Y-m-d H:i:s', $rs['inputti ...

  9. dedecms 模版里格式化时间标签

    <!--带时分秒--> [field:pubdate function="GetDateTimeMK(@me)"/] <!--只有日期--> [field: ...

随机推荐

  1. 微信"附近的人"新增商家公众号入驻功能

    微信近日升级了“附近的人”,新增商家公众号(认证的服务号和有卡券功能的公众号)可自入驻,这是微信在推出卡券和微信wifi功能后,又一加强连接线下商户能力的功能. 微信在“附近的人”中 增加搜索商户功能 ...

  2. 【Go入门教程4】struct类型(struct的匿名字段)

    struct Go语言中,也和C或者其他语言一样,我们可以声明新的类型,作为其它类型的属性或字段的容器.例如,我们可以创建一个自定义类型person代表一个人的实体.这个实体拥有属性:姓名和年龄.这样 ...

  3. Swift3.0P1 语法指南——属性

    原档:https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programmi ...

  4. C和指针 第七章 习题

    7.1 hermite递归函数 int hermite(int n, int x) { if (n <= 0) { return 1; } if (n == 1) { return 2 * x; ...

  5. MySQL 5.5编译安装

    MYSQL数据库安装方法 yum/rpm方式安装mysql 只要执行yum install mysql-server即可. yum/rpm方式安装mysql应用场景:yum/rpm安装适用对数据库要求 ...

  6. install alilang

    $sudo dpkg -i alilang.deb $ sudo alilang

  7. 深入Nginx

    Nginx功能模块汇总 --with-http_core_module #包括一些核心的http参数配置,对应nginx的配置为http区块部分 --with-http_access_module # ...

  8. JavaScript——之对象参数的引用传递

    今天碰到一个问题,怎样把参数变更影响到函数外部,如: <script> var myname = "wood"; A(myname); document.write(m ...

  9. python DBUtils.PooledDB 中 maxcached 和 maxconnections

    PooledDB 有这么几个参数 mincached : the initial number of idle connections in the pool (the default of 0 me ...

  10. jquery返回滚动条顶部

    var $view = $('html,body'),$backTop = $('#backTop'), $backTop.on('click',function(){ $view.animate({ ...