day_in_year(date)

Returns an integer representing the day of the year for a specific date.

1q = foreach q generate day_in_year('OrderDate') as "Day in Year";