Best way to store a time?

Discussion in 'ASP .Net' started by Tarun Mistry, Feb 22, 2006.

  1. Tarun Mistry

    Tarun Mistry Guest

    Hi everyone, i would like to store the time when something happened, to be
    entered manually by a user.

    What would be the best way to enter this information and then to store it in
    an MSSQL database?

    I.e. 4.05 pm ?

    Im unsure if there are some inbuild classes to handle such events in c#.

    With kind regards
    Taz
     
    Tarun Mistry, Feb 22, 2006
    #1
    1. Advertising

  2. You can just pass in DateTime.Now or use the MS SQL function GetDate()
    either should produce what you are looking for.

    Karl

    --
    http://www.openmymind.net/



    "Tarun Mistry" <> wrote in message
    news:%...
    > Hi everyone, i would like to store the time when something happened, to be
    > entered manually by a user.
    >
    > What would be the best way to enter this information and then to store it
    > in an MSSQL database?
    >
    > I.e. 4.05 pm ?
    >
    > Im unsure if there are some inbuild classes to handle such events in c#.
    >
    > With kind regards
    > Taz
    >
     
    Karl Seguin [MVP], Feb 22, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Max
    Replies:
    2
    Views:
    448
  2. Replies:
    13
    Views:
    10,927
  3. john_c
    Replies:
    11
    Views:
    1,554
    =?Utf-8?B?TWlsb3N6IFNrYWxlY2tpIFtNQ0FEXQ==?=
    Feb 22, 2007
  4. Vajra
    Replies:
    6
    Views:
    1,147
    Chris ( Val )
    Oct 8, 2007
  5. Replies:
    5
    Views:
    343
Loading...

Share This Page