Answers for "php previous date"

PHP
1

php strtotime 1 day ago from

date('Y-m-d', strtotime('+1 day', strtotime($date)))
Posted by: Guest on July-13-2020
0

last day of previous month in php

$lastDay = date('t',strtotime('last month'));

print_r($lastDay);
Posted by: Guest on November-28-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 "php previous date"

Browse Popular Code Answers by Language