DateTimeKind Enumeration
Collapse the table of content
Expand the table of content

DateTimeKind Enumeration


Specifies whether a DateTime object represents a local time, a Coordinated Universal Time (UTC), or is not specified as either local time or UTC.

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

Public Enumeration DateTimeKind

Member nameDescription

The time represented is local time.


The time represented is not specified as either local time or Coordinated Universal Time (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 4.5
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
© 2015 Microsoft