Add 40 days to the 15th of March, 2013 in PHP
Description
The following code shows how to add 40 days to the 15th of March, 2013.
Example
/*from w ww . j a v a2 s . c o m*/
<?php
$date=date_create("2013-03-15");
date_add($date,date_interval_create_from_date_string("40 days"));
echo date_format($date,"Y-m-d");
?>
The code above generates the following result.