前一天的日期为:

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')))

 

后一天的日期为:

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')))

 

如果不是1,就把+1或者-1换成+n或者-n就可以了。