C# TimeSpan Days
Description
TimeSpan Days
gets the days component of the time interval
represented by the current TimeSpan structure.
Syntax
TimeSpan.Days
has the following syntax.
public int Days { get; }
Example
The following example creates several TimeSpan objects and displays the Days property of each.
using System;/* www . j a v a 2 s .c o m*/
class TimeSpanPropertiesDemo
{
static void Main( )
{
TimeSpan ts = new TimeSpan( 98712345678 );
Console.WriteLine(ts.Days);
}
}
The code above generates the following result.