How to get the 31st Decemeber while your are in 1st Jan?
Posted: Thu Jun 19, 2003 7:59 am
Hi
Is there any function to get the previous date?
regards
Is there any function to get the previous date?
regards
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$today = mktime();
$yesterday = $today - (24*60*60);
echo 'Yesterday was: '.date('d/m/Y', $yesterday);