Best way to store a time?

  • Thread starter Thread starter Tarun Mistry
  • Start date Start date
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
 
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

Back
Top