I want to save the user\'s hours worked in a database varchar column, but by default, the formatted value includes days if the number of hours is more than 24.
varchar
You could do something like:
TimeSpan time = ...; string timeForDisplay = (int)time.TotalHours + time.ToString(@"\:mm\:ss");