title: How do you calculate the day of the year for a specific date in Objective-C?
body: <p>This is something I found myself spending hours to figure out and therefore want to share with you.</p>
  
  <p>The question was: How do I determine the day of the year for a specific date?</p>
  
  <blockquote>
    <p>e.g. January 15 is the 15th day and December 31 is the 365th day when it's not leap year.</p>
  </blockquote>