找不到帮助文档?你想要哪方面的帮助教程?提交文档建议 >
帮助文档首页
DiYunCMS公众号
公众号二维码

日期时间字段距离今天相差天数的调用方法

更新时间:2020-07-17 加入收藏
0

比如,模块创建了日期字段为到期日期,调用出还有多少天到期。

show.html

相差{$date=floor((strtotime($daoqiriqi)-strtotime(date("Y-m-d")))/86400);}天

循环中

相差{$date=floor((strtotime($t.daoqiriqi)-strtotime(date("Y-m-d")))/86400);}天


--
有帮助
--
没帮助
0
收藏
0
打赏
相关文档
Hello,欢迎来咨询~
点击在线咨询