How to get Year Name from date in Codeigniter?
Hi Guys,
In this example,I will learn you how to get year name from date using codeigniter.you can easy and simply get year name from date using codeigniter.
The year number can be converted into a year name by using codeigniter.this tutorial will give you example get year name from date using codeigniter.
Example:
public function index()
{
echo date('Y', strtotime('2016-05-17'));
}
Output:
2016
It will help you...
- Codeigniter 4 jQuery Client Side Form Validation Tutorial Example
- Codeigniter - Load more data on page scroll using jQuery and Ajax
- Codeigniter Image Crop With JQuery Croppie Example Tutorial
- CodeIgniter 4 jQuery Form Validation Example
- Codeigniter 4 Ajax Load More Data On Page Scroll With JQuery Tutorial
- CodeIgniter 4 - React JS CRUD with MySQL Example
- Codeigniter Create Bar Chart In PHP With Chart Js
- PHP Codeigniter 4 Google Bar & Line Charts Tutorial