title: How to pull the day of the year from a Date in groovy
body: <p>In Groovy, there are shortcuts for finding various common variables for Date objects such as those listed below.</p>
  
  <pre><code>Date now = new Date()
  Integer year = now.year + 1900
  Integer month = now.month + 1
  Integer day = now.date
  Integer hour = now.hours
  Integer minute = now.minutes
  </code></pre>
  
  <p>What is the shortcut for getting the day of the year?</p>