>I need to return the day of the year from a function.
>
>i.e. 01/01/2001 = 1, 02/01/2001 = 2, 31/12/2001 = 365
>
>This needs to take leap years into consideration.
>
>Your help is much appreciated.
>
>Thanks
>
>Robin Das
lnDayOfYear = ldDate - ctod('^'+str(year(ldDate)-1,4)+'/12/31')
Cetin