DAYOFYEAR(theDate as Date)
Description
Returns an integer from 1 to 366 which is the day of the year that theDate represents.
Example
Dim theDate as Date
Dim result as Integer
theDate=DateVal(1999,2,15)
result=DayOfYear(theDate) 'will calculate result=46th day of the year