Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 Count Time

Author  Topic 

Easwar
Yak Posting Veteran

59 Posts

Posted - 2007-03-24 : 04:11:19
I have User LoginTime and User LogOutTime

I need C# coding in ASP.Net

how long time(hours/Minutes/Seconds) used in User.

totaltime= LogOutTime-LoginTime

--------------------------------------

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-03-24 : 04:46:25
check out the TimeSpan class in .net - it's what you get if you subtract two datetimes.


www.elsasoft.org
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-03-24 : 09:42:33
Also see this previous topic
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=81138


Peter Larsson
Helsingborg, Sweden
Go to Top of Page
   

- Advertisement -