How to increment date with 1 (day/year) in PHP?
<p>I have a date stored in an array:</p>

<pre><code>$this-&gt;lines['uDate']
</code></pre>

<p>The format of the date is not fixed. I can be changed with this:</p>

<pre><code>  define('DATETIME_FORMAT', 'y-m-d H:i');
</code></pre>

<p>How can I increment my uDate with a certain number of days or years?</p>

<hr>

<p>My question is related to this one:<br>
<a href="http://stackoverflow.com/questions/2870295/increment-date-by-one-month">increment date by one month</a><br>
However, in my case the date format in dynamic.<br>
So, can I do this?</p>

<pre><code>$time= $this-&gt;lines['uDate'];
$time = date(DATETIME_FORMAT, strtotime("+1 day", $time));
$this-&gt;lines['uDate']= $time;
</code></pre>
