TimeSpan format: %d
using System; public class Example { public static void Main() { TimeSpan ts1 = new TimeSpan(16, 4, 3, 17, 250); Console.WriteLine(ts1.ToString("%d")); } } //16