title: Is there any way to print yesterday date in jenkins pipeline?
body: <p>I need to use yesterday's date in one of my jenkins pipeline. </p>
  
  <p>Is there any way to print yesterday date in jenkins pipeline script.</p>
  
  <pre><code>def date = new date()
  println date // this is printing the current date 
  
  def date1 = date - 1 or date.minus(1)
  println date 1 // This is also printing the current date.
  </code></pre>
  
  <p>Is there any way to get yesterday date in jenkins pipeline script.</p>