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);
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

DateTime Span 6
Check if DateTime is valid 1
Date server webcontrol 1
DateTime Just Month and Year 2
Age of Empires 4 5
DateTime optimization 2
Expand Range into List 2
Excel Vba to change displayed year automatically. 14

Back
Top