PHP subtract 1 month from date formatted with date (‘m-Y’) June 10, 2023 by Tarik <?php echo $newdate = date("m-Y", strtotime("-1 months")); output 07-2016