How To Add Minutes To Current Date In Codeigniter?

Codeigniter

Nicesnippets

456

21-12-2020


Hi Guys,

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

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

Example:


public function index()

{

//Add 5 Minutes in curent date and time

$date = date('d-m-Y H:i', strtotime("+5 min"));

}

Output:

21-12-2020 10:48

It will help you...