In my output of a grid, I calculate a TimeSpan and take its TotalHours. e.g.
TimeSpan
TotalHours
(Eval(\"WorkedHours\") - Eval(\"BadgedHours\")).TotalH
Hi i worked this into a bit of code i have been writing, hope it helps
(results) is an int variable
(TimeSpan.FromMinutes(result)) < TimeSpan.Zero ? "-" + TimeSpan.FromMinutes(result).ToString(@"hh\:mm") : "" + TimeSpan.FromMinutes(result).ToString(@"hh\:mm");