title: How to iterate over range of date in java
body: <pre><code>     SimpleDateFormat dateformat2 = new SimpleDateFormat("dd-MM-yyyy hh:mm:ss");
      Date date = new Date();
      String d=dateformat2.format(date);
  </code></pre>
  
  <p>Now I want to iterate  from current date to next 3 month date.I want to date format need to same. Any suggestion? </p>