DateTime

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amber LeVan

    #1

    DateTime

    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
  • Michael Culley

    #2
    Re: DateTime

    try something like

    DateTime d = new DateTime(DateTi me.Now.Year, 1, 1);
    d.AddDays(count - 1);

    --
    Michael Culley


    "Amber LeVan" <amber@nospam.h otmail.com> wrote in message news:056d01c3b9 f3$3f9cad90$a10 1280a@phx.gbl.. .[color=blue]
    > 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[/color]


    Comment

    Working...