title: how to add year or months from current date in groovy?
body: <p>How to add one year to current date in groovy script? </p>
  
  <pre><code>def Format1 = "yyyy-MM-dd"
  def today = new Date()
  def currentDate = today.format(Format1)
  </code></pre>
  
  <p>Example : 2015-07-29 to 2016-07-29 and 2015-07-29 to 2015-10-29. </p>