The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
DateTimeKind Enumeration
.NET Framework (current version)
Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.
Assembly: mscorlib (in mscorlib.dll)
| Member name | Description | |
|---|---|---|
| Local | The time represented is local time. | |
| Unspecified | The time represented is not specified as either local time or Coordinated Universal Time (UTC). | |
| Utc | The time represented is UTC. |
A member of the DateTimeKind enumeration is returned by the DateTime::Kind property.
The members of the DateTimeKind enumeration are used in conversion operations between local time and Coordinated Universal Time (UTC), but not in comparison or arithmetic operations. For more information about time conversions, see Converting Times Between Time Zones.
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: