How to Get Next Year From Date In Codeigniter?
Jan 20, 2021
Hi Guys,
In this example,I will learn you how to get next year from date in codeigniter.you can easy and simply get next year from date in codeigniter.
we will show you how to get next year from date in codeigniter.if you want to get next year from date in codeigniter then you can use bellow example.
Example:
public function index()
{
$date = "2020-01-11";
$newdate = date("Y-m-d",strtotime ( '+1 year' , strtotime ( $date ) )) ;
echo $newdate;
}
Output:
2021-01-11
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