title: Increment date to the next day using Groovy
body: <p>Trying to add 1 day to the simple date format.</p>
  
  <pre><code>import java.text.SimpleDateFormat 
  Date date = new Date();
  def dateformat =  new SimpleDateFormat("YYYY-MM-dd")
  def currentDate = dateformat.format(date)
  log.info "Current Date : " + currentDate
  
  Date date1 = (Date)dateformat.parse(currentDate);
  Calendar c1 = Calendar.getInstance();
  c1.setTime(date1); 
  log info c1.add(Calendar.Date,1);
  </code></pre>
  
  <p>Error occurred in line : </p>
  
  <blockquote>
    <p>"log info c1.add(Calendar.Date,1);"
    groovy.lang.MissingPropertyException:No such property: info for class: Script16 error at line: 10</p>
  </blockquote>
  
  <p><strong>Note : The current date should be any date in future and i want to increment by 1 day.</strong></p>