Blog Details

how to get next day date in php?



                                

<?php $todayDate = date("Y-m-d");// current date echo "Today: ".$todayDate."<br>"; //Add one day to today $date = strtotime(date("Y-m-d", strtotime($todayDate)) . " +1 day"); echo "After adding one day: ".date('l dS \o\f F Y', $date)."<br>"; ?> Output : Today: 2012-06-28 After adding one day: Friday 29th of June 2012  


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