I have a Razor view with
@Html.DisplayFor(modelItem => item.TotalTime)
and the type of TotalTime is TimeSpan.
It works great problem is we have now found a few cases where the TotalTime goes over 24hrs so it shows as 1.01:00:00 (1day, 1Hr, 00Mins, 00 Secs). so the value is still correct but I need it to display as 25:00:00 (25Hrs, 00Mins, 00Secs).
I could change the model to a string but it's used in various places including formulas etc so it's not a simple task, hence I am looking to just change the display of the value.
I have looked around for a Data Annotation for the DisplayFor but not found one that will work so I am open to suggestions
Thanks
Cliff.