PHP date plus one day

PHP date plus one day


Posted in : PHP Posted on : February 2, 2011 at 6:26 PM Comments : [ 0 ]

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 :

Download Source Code

Go to Topic «PreviousHomeNext»

Your Comment:


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

 
Tutorial Topics