Answers for "how to get back data by month date php"

PHP
5

php grab month from date

$month = date("m",strtotime($mydate));
Posted by: Guest on June-11-2020
0

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;
Posted by: Guest on August-18-2020

Code answers related to "how to get back data by month date php"

Browse Popular Code Answers by Language