PHP Date add 1 day
This simple code will tell you how you can easily add 1 day to a date.
Example code for PHP Date add 1 day:
<?phpHere is the output of the program:
$todayDate = date("Y-m-d");// current date
echo "Today: ".$todayDate."<br>";
//Add one day to today
$date = strtotime(date("Y-m-d", strtotime($todayDate)) . " +1 day");
echo "After adding one day: ".date('l dS \o\f F Y', $date)."<br>";
?>
Today: 2009-08-24
After adding one day: Tuesday 25th of August 2009
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.