DateTime

  • Thread starter Thread starter Amber LeVan
  • Start date Start date
A

Amber LeVan

I am being passed the number day of year, like 20 or 320,
and have to determine what day it is, like 20 becomes
1/20/2003. I know the year is the current year, I just
can't figure the month and day from the number.

I am reading about the DateTime structure but haven't
found the solution yet.

Amber
 
try something like

DateTime d = new DateTime(DateTime.Now.Year, 1, 1);
d.AddDays(count - 1);
 
Back
Top