title: I am very new to velocity apache script
body: <p>Present code is am using is like this:</p>
  
  <pre><code>#set($startdate=$datetool.format("yyyymmdd",$fromDate))
  
  #set($enddate=$datetool.format("yyyymmdd",$endDate))
  </code></pre>
  
  <p>But I dont know how to continue.
  I want to find out difference between two dates which are in the format <code>yyyymmdd</code>, and if the difference is greater than one month, I have to divide that into months, so please anyone help to solve this.</p>