TimeSpan format: d\.hh\:mm\:ss for new TimeSpan(3, 4, 3, 17)
using System;
public class Example
{
public static void Main()
{
TimeSpan ts3 = new TimeSpan(3, 4, 3, 17);
Console.WriteLine(ts3.ToString(@"d\.hh\:mm\:ss"));
}
}
//3.04:03:17
Related examples in the same category