I have saved a duration in minutes and want to have an output \"1 day 5 hours 30 minutes\". Currently i add the minutes to a Timespan and do something like this:
<
You need to implement something like this:
TimeSpan workday = new TimeSpan(8, 0, 0); int workdays = ts.Ticks / workday.Ticks TimeSpan rest = new TimeSpan(ts.Ticks % workday.Ticks) Response.Write(workdays + "workday(s) and" + rest.ToString());
Will write something like
"3 workday(s) and 3:32"