TimeSpan format: d\.hh\:mm\:ss : TimeSpan Format « Date Time « C# / C Sharp
- C# / C Sharp
- Date Time
- TimeSpan Format
TimeSpan format: d\.hh\:mm\:ss
using System;
public class Example
{
public static void Main()
{
TimeSpan ts2 = new TimeSpan(4, 3, 17);
Console.WriteLine(ts2.ToString(@"d\.hh\:mm\:ss"));
}
}
//0.04:03:17
Related examples in the same category