Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

previous month number in php

<?php
    $date = "2020-01-11";
    $newdate = date("Y-m-d", strtotime ( '-1 month' , strtotime ( $date ) )) ;
    echo $newdate;
?>
 
PREVIOUS NEXT
Tagged: #previous #month #number #php
ADD COMMENT
Topic
Name
9+1 =