Returns the day of the year for a date as a number between 1 and 366 (leap year).