前一天的日期为:
date("Y-m-d",strtotime("-1 days",strtotime('2019-08-31')))
前一月的日期为
date("Y-m-d",strtotime("-1 months",strtotime('2019-08-31')))
前一年的日期为:
date("Y-m-d",strtotime("-1 years",strtotime('2019-08-31')))
后一天的日...
php获取指定日期的前一天,前一月,前一年日期
前一天的日期为:
date("Y-m-d",strtotime("-1 days",strtotime('2019-08-31')))
前一月的日期为
date("Y-m-d",strtotime("-1 months",strtotime('2019-08-31')))
前一年的日期为:
date("Y-m-d",strtotime("-1 years",strtotime('2019-08-31')))
后一天的日...