Blog Details

How to get date after 40 days in php


                                
                                    <?php

$currentdate= date("Y-m-d"); //Current date
$add_days = 40; // no of days
$date_afterforty = date('Y-m-d',strtotime($currentdate) + (24*3600*$add_days)); // date after 40 days of current date

echo $date_afterforty;

?>
                                    


Categories

Core_PHP

Latest posts

13.05.14
Implementing CRUD Operations ΒΆ

<ul> <li>Now comes the fun part. We would like t

13.05.14
View

<ol> <li><a href="http://www.yiiframework.com/do

13.05.14
Creating Model

<ol> <li><a href="http://www.yiiframework.com/do

Get Free Quote