Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Best way to store a time?

Reply
Thread Tools

Best way to store a time?

 
 
Tarun Mistry
Guest
Posts: n/a
 
      02-22-2006
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


 
Reply With Quote
 
 
 
 
Karl Seguin [MVP]
Guest
Posts: n/a
 
      02-22-2006
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" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> 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
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best way to store lookup variables? john_c ASP .Net 11 02-22-2007 02:48 PM
Best way to store a large number of files? heather.fraser@gmail.com Java 13 10-10-2005 01:11 PM
Best way to manage. catalogue and store photos?? PeterH Digital Photography 8 01-05-2005 03:52 AM
Best way to load/store web site settings in database Max ASP .Net 2 12-08-2003 10:39 PM
best way to store dig.photo just_a_girl41 Digital Photography 1 08-22-2003 12:25 PM



Advertisments