How To Subtract Minutes To Current Date Time In Codeigniter?

Codeigniter

Nicesnippets

332

28-12-2020


Hi Guys,

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

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

Example


public function index()

{

$date = date('Y-m-d H:i:s', strtotime('-15 minutes'));

}

Output:

2020-12-28 10:12:12

It will help you...