TimeSpan format: %d : TimeSpan Format « Date Time « C# / C Sharp
- C# / C Sharp
- Date Time
- TimeSpan Format
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
Related examples in the same category