How To Subtract days To Current Date In Codeigniter?

Dec 24, 2020

.

Admin

Hi Guys,

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

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

Example:


public function index()

{

\\Remove day to current date

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

}

Output:

23-12-2020

It will help you...

#Codeigniter