Best way to store a time?

T

Tarun Mistry

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
 
K

Karl Seguin [MVP]

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

Karl
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top