In this tutorial you will learn how to find PHP date plus one day in a PHP web application.
PHP date plus one day
In this tutorial you will learn how to find PHP date plus one day in a PHP web application. The code of "php-date-plus-one-day.php" given below :
<?php $date=date('Y-m-d'); echo "Date :: ".$date."<br>"; $date_arr=explode('-',$date); echo "Date plus one day =>"; $date2=Date("Y-m-d",mktime(0,0,0,$date_arr[1],$date_arr[2]+1,$date_arr[0])); echo $date2; ?>
Output :
When run "php-date-plus-one-day.php" display output as :
[ 0 ] Comments