in my output of a grid
i calculate a TimeSpan and take its TotalHours ex. (Eval("WorkedHours") - Eval("BadgedHours")).TotalHours
goal is to show this TotalHours as : 39:44 so. First value 7.5 to 07:30
no problem.. but if its negative!
I can create a TimeSpan object from Hours with TimeSpan.FromHours( (Eval("WorkedHours") - Eval("BadgedHours")).TotalHours)
now if its negative i cant convert it to a datetime and use the .ToString("HH:mm") method.
And the timespan object does not support the format string .
Thx