date increment problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Swathimaddipatla
Forum Newbie
Posts: 9
Joined: Fri May 09, 2008 7:08 am

date increment problem

Post by Swathimaddipatla »

hi..

how can i increment a date

$date= date("m.d.Y");
echo $date;
$next_date = $date+1;
echo $next_date;


Now,it will display 20.05.2008 as date and 21.05 as next_date..

pls tell me how to increment only date by one.
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: date increment problem

Post by VladSun »

There are 10 types of people in this world, those who understand binary and those who don't
Post Reply