How to Add Month to Current Date In Codeigniter ?

Codeigniter

Nicesnippets

1119

18-12-2020


Hi Guys,

In this example,I will learn you add month to current date in codeigniter.you can easy and simply add month to current date in codeigniter.

we will show add month in current date codeigniter.this tutorial will give you example of add month to current date using codeigniter.

Example:


public function index()

{

// add 1 months to date

$date = date("d/m/Y", strtotime(" +1 months"));

}

Output:

18/01/2021

It will help you...