Re: Using arrays to display a date.



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
>
>
>
.



Relevant Pages

  • Re: Array descriptors
    ... There seem to be two ways of implementing the array descriptors ("dope ... where the base_address plus the offset defines the first memory ... Sun Fortran uses a third option. ... origin, your base address, and a virtual origin, the address ...
    (comp.lang.fortran)
  • Re: fast dictionary search algorithm
    ... >> requested word's meaning in the shortest time possible. ... >Im no expert but I would have thought a binary search for a hash from ... using it as an array offset. ...
    (comp.programming)
  • Re: Offset/match returns #value error
    ... Yes the formula in the original post works fine using INDEX instead of ... OFFSET. ... The other formulas come from elsewhere in the workbook and were ... What I was doing in my last post was building an array using INDEX as follows: ...
    (microsoft.public.excel.worksheet.functions)
  • Re: A taxonomy of types
    ... array semantics, ...) ... you mean "following correct offset operator semantics"... ... What does exist is based exclusively on pointer type. ... "int an integer, typically reflecting the natural size of integers on ...
    (comp.lang.misc)
  • Re: Library Design, f0dders nightmare.
    ... demo mistake but I suggest to you that a sequence of blunders on this ... Feed it through your parser to get the offset of each ... offset to its appropriate place in the array of pointers and when you ... dividing the byte count by two to determine the maximum pointer array ...
    (alt.lang.asm)