Re: Using arrays to display a date.
- From: "Vikas Arya" <aryavikas@xxxxxxxxxxx(donotspam)>
- Date: Thu, 7 Apr 2005 10:23:02 -0700
Thanks.
"Ignacio Machin ( .NET/ C# MVP )" wrote:
> Hi,
>
> Why an array?
>
> I guess that the number you will enter will mean the day offset in the year,
> if that is what you want I'm sure there exist several ways, from the top of
> my head I think of this:
>
> DateTime dt = new DateTime( DateTime.Now.Year, 1, 1) ;
> dt = dt.AddDays( number_from_1_to_365 );
>
>
> Again, no idea why the use of the array
>
> cheers,
>
>
> "Vikas Arya" <aryavikas@xxxxxxxxxxx(donotspam)> wrote in message
> news:43A8D541-E7AF-4090-B2D8-7F8FD37C6E7D@xxxxxxxxxxxxxxxx
> > Hi.
> >
> > Any suggestions on how I might build a form which allows my user to enter
> > a
> > number from 1-365 and return a date in the 'mm/dd' format?
> >
> > I would like to use an array to do this. Thanks.
> > --
> > Thanks,
> >
> > Vikas Arya
>
>
>
.
- References:
- Using arrays to display a date.
- From: Vikas Arya
- Re: Using arrays to display a date.
- From: Ignacio Machin \( .NET/ C# MVP \)
- Using arrays to display a date.
- Prev by Date: Re: Idea for ECMA/C# Standard - compile time hash for performance
- Next by Date: Re: Idea for ECMA/C# Standard - compile time hash for performance
- Previous by thread: Re: Using arrays to display a date.
- Next by thread: Re: Using arrays to display a date.
- Index(es):
Relevant Pages
|