How to Add Days to Date in CodeIgniter ?

Dec 17, 2020

.

Admin

Hi Guys,

In this example,I will learn you add day to current date in codeigniter.you can easy and simply add day to current date in codeigniter.

we will show add day in current date codeigniter.this tutorial will give you example of add day to current date using codeigniter.

Example :


public function index()

{

// add 1 days to date

$NewDate=Date('d:m:Y', strtotime('+1 days'));

}

Output:

18:12:2020

It will help you...

#Codeigniter