<?php $date = "2020-01-11"; $newdate = date("Y-m-d", strtotime ( '-1 month' , strtotime ( $date ) )) ; echo $newdate; ?>