Codeigniter Get Month Name From Date Example

01-Jan-2021

.

Admin

Hi Guys,

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

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

Example:


public function index()

{

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

}

Output:

May

It will help you...

#Codeigniter