Compartir a través de


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.

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

Syntax

public DateTimeKind Kind { get; }

Property Value

One of the DateTimeKind values. The default is Unspecified.

Remarks

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

The 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.

Version Information

Available in the .NET Micro Framework versions 3.0, 3.5, 4.0, and 4.1.

See Also

Reference

DateTime Structure
DateTime Members
System Namespace