Get Date after adding month and leave above days
<pre><code>$start_date = "2012-01-05";   
$end_date = "2012-02-10";
</code></pre>

<p>How to get month and after getting month date should like in above example</p>

<p><code>$end_date</code> should "2012-02-05"; leave above 5 days. don't count a above day.</p>

<p>How can i do this in php?</p>

<p>I wan't to like</p>

<pre><code>$month = 1;   
$end_date =   "2012-02-05"; 
</code></pre>

<p>Second Example</p>

<pre><code>$start_date = "2012-06-19";  
$end_date = "2012-09-25";
</code></pre>

<p>then should    </p>

<pre><code>$month = 3;   
$end_date = "2012-09-19";   
</code></pre>

<p>Leave days between "2012-09-19" to "2012-09-25".</p>

<p>Thanks </p>
