System.DateTime.Kind Property

Gets a value that indicates whether the time represented by this instance is based on local time, Coordinated Universal Time (UTC), or neither.

Syntax

public DateTimeKind Kind { get; }

Value

Documentation for this section has not yet been entered.

Remarks

You can explicitly set the DateTime.Kind property of a new DateTime value to a particular DateTimeKind value by calling the DateTime.SpecifyKind(DateTime, DateTimeKind) method.

The DateTime.Kind property allows a DateTime value to clearly reflect either Coordinated Universal Time (UTC) or the local time. In contrast, the DateTimeOffset structure can unambiguously reflect any time in any time zone as a single point in time.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0