Thread
:
I need this programmed...
View Single Post
11-16-2012, 01:56 AM
PM User
|
#
9
Old Pedant
Supreme Master coder!
Join Date: Feb 2009
Posts: 23,556
Thanks: 62
Thanked 4,055 Times in 4,024 Posts
This isn't close to right:
Code:
DayOfYear = days - (year*365)
That ignores any leap years that have already occurred!
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant
View Public Profile
Find More Posts by Old Pedant