19-Dec-2020
.
Admin
Hi Guys,
In this example,I will learn you add year to current date in codeigniter.you can easy and simply add year to current date in codeigniter.
we will show add year in current date codeigniter.this tutorial will give you example of add month to current date using codeigniter.
Example:
public function index()
{
$date = date('d/m/Y', strtotime('+1 years'));
}
Output:
19/12/2021
It will help you...
#Codeigniter