请问关于发布文章时间比较的判断当发布文章时间大于上个月的最后
请问关于发布文章时间比较的判断,当发布文章时间大于上个月的最后一天的日期
{if $t.inputtime <= date('Y-m-d', strtotime('midnight last day of -1 month'))}
执行内容
{/if}
为什么这个判断不起作用呢?现在是都执行!
请问关于发布文章时间比较的判断,当发布文章时间大于上个月的最后一天的日期
{if $t.inputtime <= date('Y-m-d', strtotime('midnight last day of -1 month'))}
执行内容
{/if}
为什么这个判断不起作用呢?现在是都执行!