Adding two days to the date : time « Date « PHP






Adding two days to the date

 
<?php
$timestamp= time(  );
echo date("m/d/y G.i:s",$timestamp);
$seconds=2*24*60*60;
$timestamp+=$seconds;
echo "<br />new dates
 is:";
echo date("m/d/y G.i:s",$timestamp);
?>
  
  








Related examples in the same category

1.A simple echo of the timestamp
2.Another date interval with epoch timestamps
3.int time ( void ) gets the current time in epoch format is time( )