How to display end date of the current week in Codeigniter?

Codeigniter

Nicesnippets

470

09-01-2021


Hi Guys,

In this example,I will learn you how to display end date of the current week in codeigniter.you can easy and simply display end date of the current week in codeigniter.

Example:


public function index()

{

$date = date('Y-m-d');

echo $date;

}

Output:

2021-01-09

It will help you...