thestars Posted April 29, 2009 Share Posted April 29, 2009 A date is given, not the current date.Its a random date not in the date time format(eg:30/04/2008). I have to get the very next date after that date.Please help with code in php Quote Link to comment Share on other sites More sharing options...
rhodesa Posted April 29, 2009 Share Posted April 29, 2009 try this <?php $date = '30/04/2008'; list($d,$m,$y) = explode('/',$date,3); $date = date('d/m/Y',mktime(0,0,0,$m,$d + 1,$y)); echo $date; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.