Adding days to $Date in PHP
<p>I have a date returned as part of a mySQL query in the form 2010-09-17</p>

<p>I would like to set the variables $Date2 to $Date5 as follows:</p>

<p>$Date2 = $Date + 1</p>

<p>$Date3 = $Date + 2 </p>

<p>etc..</p>

<p>so that it returns 2010-09-18, 2010-09-19 etc...</p>

<p>I have tried </p>

<pre><code>date('Y-m-d', strtotime($Date. ' + 1 day'))
</code></pre>

<p>but this gives me the date BEFORE $Date.</p>

<p>What is the correct way to get my Dates in the format form 'Y-m-d' so that they may be used in another query?</p>
