Kirk,

I've been looking and I can't seem to find if there a variable which will return the day of the year as a number, so 1/1/2013 would be 1/365 and 21/3/2013 would be 80/365?

Obviously it would really only need to be the first part if calculating the leap year would be a problem.

Cheers

Ant