S
Sean Fullerton
In C# if I want to know the time in hours (fractional as well) between two
times how would I do that?
Current code is as follows:
DateTime startTime =
DateTime.Parse(e.Row.Cells["StartTime"].Value.ToString());
DateTime endTime = DateTime.Parse(e.Row.Cells["EndTime"].Value.ToString());
TimeSpan totalTime = endTime.TimeOfDay - startTime.TimeOfDay;
Decimal test = totalTime.Minutes / 60;
Sean
times how would I do that?
Current code is as follows:
DateTime startTime =
DateTime.Parse(e.Row.Cells["StartTime"].Value.ToString());
DateTime endTime = DateTime.Parse(e.Row.Cells["EndTime"].Value.ToString());
TimeSpan totalTime = endTime.TimeOfDay - startTime.TimeOfDay;
Decimal test = totalTime.Minutes / 60;
Sean