Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DateTime.Kind Property

.NET Micro Framework 3.0
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)

public DateTimeKind Kind { get; }

Property Value

One of the DateTimeKind values. The default is Unspecified.

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.

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

Community Additions

ADD
Show:
© 2015 Microsoft