I have an excel sheet which has time in one of it's columns.
Example:
Name, Time
John 02:32
Peter 14:20
Paul 11:00
I imported my excel to a datagrid view, and I want to total up the time. I don't know how to add up the time.
I did try the DateTime but it doesn't work, maybe I missed something.
Here's what I try.
DateTime peopleTime = new DateTime();
Then I try to loop through the rows and add the time column.
peopleTime.Add(dataGrid.Rows[i].Cell[1].Value.ToString());
It doesn't work.