Jan 20, 2021
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.
public function index()
$date = "2020-01-11";
$newdate = date("Y-m-d",strtotime ( '+1 year' , strtotime ( $date ) )) ;
It will help you...