Question: how to subtract year from date in php?
Answer: //Minus one year from a given date. $date = '2019-09-09'; $dateMinusOneYear = date("Y-m-d", strtotime("-1 year", strtotime($date))); //Results in 2018-09-09.