Today is 5.27.2010 - this means it is day 147 of this year.
5.27.2010
How do I calculate that today is 147 based on the current date?
Actually, it's pretty easy:
int dayOfYear = DateTime.Today.DayOfYear;