date.yearDay() function

    Examples

    Return the day of the year for a time value
    Return the day of the year for a relative duration