Answers for "get previos moth from date function"

PHP
0

get previos moth from date function

$tgl = '25 january 2012';

$prevmonth = date("M Y",mktime(0,0,0,date("m", strtotime($tgl))-1,1,date("Y", strtotime($tgl))));
echo $prevmonth;
Posted by: Guest on August-18-2020

Code answers related to "get previos moth from date function"

Browse Popular Code Answers by Language