You are browsing ASP.NET Forum.
SEARCH YOUR SOLUTION HERE  

how can i calculate total time in asp.net using c#

may i know how can i calculate the total time in asp.net using c# comprising hour minutes, and second
the example i could found in the Internet only add up hour and minutes.
string hour1="48:40";
string hour2 = "45:35";
TimeSpan ts = new TimeSpan(int.Parse(hour1.Split(':')[0]),int.Parse(hour1.Split(':')[1]),0);
TimeSpan ts1 = new TimeSpan(int.Parse(hour2.Split(':')[0]),int.Parse(hour2.Split(':')[1]),0);
TimeSpan total = ts + ts1;
and what does the [1] and [0] means
Posted On: Tuesday, November 27, 2012 Total Views: 21
View Complete with Replies


Hi,

This webpage contains content related to ASP.NET. If question related to "how can i calculate total time in asp.net using c#" is not helpful or you didn't find the question or answer you were looking for then you can ask a new question through contact form. Our development Team will be happy to help you. This article was posted on Tuesday, November 27, 2012 and having 21 views till Monday, December 22, 2014.

Thank You


Related Messages:

How to calculate some thing between two columns in a gridsee control  (76 Views)
I've an easy gridsee control on .aspx page. It has one combo box in the gridsee control and rest of the columns in the gridsee control are all bound controls.
When the user picks some thing from combo box I should multiply the number (picked from the combo box) with other number in the same row
View Replies !
hwo to calculate dates between two dates  (29 Views)
is there any way to get all dates b w two date for instance
14 10 2010
22 10 2010
so there are 9 days b w two datesi wanaed to do it asp.net
View Replies !
How to calculate time difference  (39 Views)
Hello
For a project I am working on right now I wana to be able to calculate the
time difference between to given times (24 hour format) and two given dates
For example:
Case 1: On the same date
The difference between 11:30 28 09 2005 and 14:45 28 09 2005 being 03:15
Case 2: On va
View Replies !
ho to retreive totalrecords in asp.net  (23 Views)
i was trying to retreive totalrecords and put it in a text feild
how can i do that
Please Help
View Replies !
Re: generating calculated extra coulmn in a datagrid  (17 Views)

I want include a calculated column as part of my columns in the datagrid.
Let s say: the datagrid gets the columns: col1, col2, col3 from the database
I wana to add another column in my datagrid: col4
But col4 will be: col4= col1 + col2 - col3 (just an example)
I think I should do
View Replies !
Math with .NET? total of gridsee columns  (24 Views)

I was just jobed with making a gridsee of a couple of columns.
Column one is a name and columnd 2,3 and more.. are check boxes that will indicate the job has been finished or not. What I've to do is at the bottom of the column or in a textbox display the done. I've never worked with the mat
View Replies !
summing total of datagrids  (15 Views)
http: www.vbforums.com displaythread.p...hreadid=307621
View Replies !
recalculate in datagrid  (13 Views)

esobodyi want your assist, is there anybody know how can i write the function will calculate the total for the items in datagrid.or do you've any related web site, you can send to me,ok
View Replies !
[RESOLVED] itemdatabound doubles total  (25 Views)
The framework using is 3.5.
Situation: I've a page which I call a stored procedure that returns two results. I Create a dataset and then from that Create two datasees which one can have more than one records.
Issue: During the rptInvoice_itemDataBound of the repeater I am adding the amount val
View Replies !
Re: How do u display total number of rows in a table into a label?  (15 Views)
i am newcomer.
i use sql server 2005 and Visual Studio 2008.
I am using asp.ne and vb.net for my web site.
i have a table with number of rows 50000.
i wana to display the number of rows at my table in a Label when the page is on load.
so can u give me the code snippet or the hint than
View Replies !
Re: [2005] Recalculate Formsee on Formsee Insert  (17 Views)
I've 2 formsees the first SELECTS the SUM of one of my fields in my tablr and shows the result in a label. The second contains a form that submits data into this table.
When i submit a new value into the second form i wana the first form to edit.
I recently have:
If IsPostBack Then
D
View Replies !
Re: Master Page totally loaded?  (10 Views)

How can I know if the masterpage is totally loaded
Imagine that you've a label in a masterpage with date.now in it.
And one children of that masterpage wants the contents of that label you do this:Code:
Protected Sub Page_LoadComplete(ByVal sender As Object, ByVal e As System.EventAr
View Replies !
Re: Automatically calculate and populate  (18 Views)

I am trying to find way to automatically calculate and populate to Label
Adding up two two textboxes and then automatically populate to Label.
I can get it to work with onclick funtion but I really don't wana that.
View Replies !
GridView - inserting total line in detail section  (58 Views)
I've a GridView that shows a list of cost code snippets for a specific job (see attached example). User wanas to have a line inserted after each break on cost code snippet displaying total quantity (nned to add up quantity for each line). Is this possible Any suggestion would be applicationlaudd.
View Replies !
How to calculate values of a datacolumn from 2 datatable values?  (31 Views)

I've a dataset with 2 dataTables named "Office" and "DriveInfo." The schema for "Office" is:Code:" target="_blank">http: www.w3.org 2001 XMLSchema">;The schema for "DriveInfo" is:Code:" target="_blank">http: www.w3.org 2001 XMLSchema">;I am adding a new datacolumn named "Changed" to the d
View Replies !
[2005] going totally nuts with user controls  (20 Views)
I am going totally nuts here.
I hope some body can assist me here I've been going nuts for 2 days now.
I've a page where I edit and insert items. (for this particular web site it is horses.)
Each horse has a set of properties. I amade user controls for all properties.
all user control
View Replies !
executing total in asp editable gridsee  (56 Views)
This has been causing me grief for days. I posted here http: www.dreaminco...-and-gridsees but ttold its more jsp or c# ..can anybody assist pls
View Replies !
calculate number of days between two dates in Asp.net MVC-3  (128 Views)

I've to count the days between given start and end dates in MVC-3
so how can i do this
code snippet of my class files are:
set get fileusing System;
using System.collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
us
View Replies !
how can i calculate the node of tree  (20 Views)
I am using asp.net. i have Create a tree with the assist of levels.
Now i wana to count all member of particular member. How can i do that.
View Replies !
Label shows total  (21 Views)
I've got this code snippet:







I wana amount_01 to display area_01 * rate_01 when the two textboxs' values's are entered and this is done with out a button.
How can I do this
View Replies !