using System;
public class Example
{
public static void Main()
{
TimeSpan duration = new TimeSpan(1, 12, 23, 62);
string output = duration.ToString("%d") + " days";
Console.WriteLine(output);
output = duration.ToString(@"dd\.hh\:mm\:ss");
Console.WriteLine(output);
Console.WriteLine("{0:%d} day(s)", duration);
Console.WriteLine("{0:dd\\.hh\\:mm\\:ss} days", duration);
}
}
/*
1 days
01.12:24:02
1 day(s)
01.12:24:02 days
*/