更美观的显示列表时间,不带小时、分、秒,直接显示年月日的方法。
&datetype,显示全部时间,&datetype=2显示月和日,&datetype=1只显示年份,&datetype=3,只显示年月日
修改tag下的list模板中的{timetodate($t[addtime], $datetype)}为{timetodate($t[addtime], $datetype=此处为数字)}即可
如果是直接调用的<!–{tag
(“moduleid=9&table=article_9&catid=$catid&child=1&condition=status=3&order=addtime
desc&pagesize=6&datetype=2&target=_blank”)}–>,则直接修改datetype=?的数值即可
是不是非常的方便呢?