php获取指定日期的前一天,前一月,前一年日期
php获取指定日期的前一天,前一月,前一年日期
## php获取指定日期的前一天,前一月,前一年日期
前一天的日期为:
date("Y-m-d",strtotime("-1 days",strtotime('2014-07-01')))
前一月的日期为:
date("Y-m-d",strtotime("-1 months",strtotime('2014-07-01')))
...
转载
2019-04-13 11:43:53 ·
359 阅读 ·
0 评论