Get range of dates by month between range of dates
<p>I have these dates:</p>

<pre>
start date:  5/08/2011
end date:  16/11/2011
</pre>

<p>I need get the follow ranges according to the month dynamically:</p>

<pre>
5/08/2011-31/08/2011
1/09/2011-30/09/2011
1/10/2011-31/10/2011
1/11/2011-16/11/2011
</pre>

<p>I need get ranges of dates dynamically by month from a start date and end date.</p>

<p>Can you help me?  Thanks.</p>
