Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php date function get previous month

$tgl = '25 january 2012';

$prevmonth = date("M Y",mktime(0,0,0,date("m", strtotime($tgl))-1,1,date("Y", strtotime($tgl))));
echo $prevmonth;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #date #function #previous #month
ADD COMMENT
Topic
Name
9+2 =