How to get Day Name from date in Codeigniter?

Codeigniter

Nicesnippets

04-01-2021


Hi Guys,

In this example,I will learn you how to get Day name from date using codeigniter.you can easy and simply get Day name from date using codeigniter.

The Day number can be converted into a Day name by using codeigniter.this tutorial will give you example get Day name from date using codeigniter.

Example:


public function index()

{

echo date("D", strtotime('2016-05-17 16:41:51'));

}

Output:

Tue

It will help you...