Inside a table, does any1 know how to select a specified row and take a Time data in a specified column, then put the data inside TimeSpan?
DataRow[] selectIDRow = RetailCamDataSet1.Tables["smBranchWorkingDayInfo"].Select("ID=" + ID);
foreach (DataRow row in getTimeDifference)
{
TimeSpan startTime = new TimeSpan(); //Need to put the data into the bracket instead of using hard code
TimeSpan endTime = new TimeSpan(20, 00, 00); //Hard coded
TimeSpan timeDifference = new TimeSpan();
timeDifference = endTime.Subtract(startTime);
double minutes = timeDifference.TotalMinutes;
normalCount = minutes / 15;
Have you tried
TimeSpan.Parse()?