Forum Moderators: coopster
How come its not printing out the right date output. Could some tell me please, where I am making mistakes.
PHP Code:
$tomorrow = mktime(0.0,0, date("m") , date("d")+1, date("Y"));
$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);
echo "$tomorrow<BR>";
echo "$lastmonth<BR>";
echo "$nextyear<BR>";
output:
1280289612
1100322000
1134450000
Thanks in advance
Suresh
$tomorrow = strtotime("tomorrow");
$lastmonth = strtotime("-1 month");
$nextyear = strtotime("+1 year"); ;)