【发布时间】:2026-02-04 19:50:02
【问题描述】:
到目前为止
strtotime('last day of this month');
给了我最后一天 (31),但我想要倒数第二天 (30),我已经尝试过:
strtotime('-1 day','last day of this month');
还有 strtotime('本月最后一天') - strtotime('1 day');和其他东西。始终导致(格式化为 date())1969 年 12 月 31 日。
我怎样才能做到这一点?
【问题讨论】: