How to Get Next Day From Date In Codeigniter?

Jan 18, 2021

.

Admin

Hi Guys,

In this example,I will learn you how to get next day from date in codeigniter.you can easy and simply get next day from date in codeigniter.

we will show you how to get next day from date in codeigniter.if you want to get next day from date in codeigniter then you can use bellow example.

Example:


public function index()

{

$date = "2020-01-11";

$newdate = date("Y-m-d",strtotime ( '+1 day' , strtotime ( $date ) )) ;

echo $newdate;

}

output:

2020-01-12

It will help you...

#Codeigniter