G
Guest
I have a datagrid with a start and an end time. I subtract the start time
from the end time in each row and place the difference into a TimeSpan
variable. Now I want to total up the Timespans and get the total number of
hours taken.
Dim HourSum as Decimal = 0.0
Later in a method I call
HoursSum += Convert.ToDecimal(Hours) **error - doesn't like type cast.
So how do I total up a TimeSpan?
from the end time in each row and place the difference into a TimeSpan
variable. Now I want to total up the Timespans and get the total number of
hours taken.
Dim HourSum as Decimal = 0.0
Later in a method I call
HoursSum += Convert.ToDecimal(Hours) **error - doesn't like type cast.
So how do I total up a TimeSpan?