Java checking no of days in a month and adding dates that are missing
<p>Hi I have the following arraylist strings of dates</p>

<p>["2010-08-01","2010-08-02","2010-08-04","2010-08-05","2010-08-06","2010-08-07","2010-08-08","2010-08-09","2010-08-11","2010-08-12","2010-08-13","2010-08-14","2010-08-15","2010-08-17","2010-08-18","2010-08-20","2010-08-21","2010-08-26","2010-08-28","2010-08-29"]</p>

<p>I have 2 aims that I want to achieve,</p>

<p>1) how to get the number of days for each month based on the year and month above?
2) how to add in the missing date(same format as above) for the entire sequence of dates strings above? For eg: 2010-08-01,2010-08-02,2010-08-04  -->I should add in 2010-08-03 in between 2010-08-02 and 2010-08-04</p>

<p>Thanks!</p>
