Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

.NET Forum


You are currently viewing our .NET Forum as a guest. Please register to participate.
Login



Reply
Time Crunching in Gridview
Old 08-16-2008, 02:39 PM Time Crunching in Gridview
Skilled Talker

Posts: 60
Name: Nick Martin
Trades: 0
Hey All,

I am working a web report that displays employee clock in & out times. What I have so far is a gridview with databound rows that display the time the employee clocked in and then out. I take these two rows and calculate the total 'TimeSpane' between the two. The result is total minutes. I display these results in alternating rows(the second row; 'clock out' row)

This works. What I need is a good way to display the time in hh:mm format. I would then like to display the total in the footer. My current footer calculation is adding all of the time span values and placing it in the footer. I just need the last summation.

Anyone know of a good site that shows an example close to what I am describing? I am writing this ASP.net app using the 2.0 framework with C# code behind.

Thanks a ton!

Nick
SpudNik is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-25-2008, 03:39 PM Re: Time Crunching in Gridview
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
Call TimeSpan.ToString("???") with the proper format sent in. I think MM is month and mm is minute, but I could be wrong.

A good site to find information about all of this is MSDN's help files, I think at http://msdn.microsoft.com.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Time Crunching in Gridview
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29141 seconds with 12 queries