Share via


Days Property

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Gets the days component of the time interval represented by the current TimeSpan structure.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

Syntax

'Declaration
Public ReadOnly Property Days As Integer
public int Days { get; }
public:
property int Days {
    int get ();
}
member Days : int with get
function get Days () : int

Property Value

Type: System. . :: . .Int32
The day component of this instance. The return value can be positive or negative.

Remarks

A TimeSpan value can be represented as [-]d.hh:mm:ss.ff, where the optional minus sign indicates a negative time interval, the d component is days, hh is hours as measured on a 24-hour clock, mm is minutes, ss is seconds, and ff is fractions of a second. The value of the Days property is the day component, d.

.NET Framework Security

See Also

Reference

TimeSpan Structure

System Namespace