Export (0) Print
Expand All
Expand Minimize

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)

[<SerializableAttribute>]
[<ComVisibleAttribute(true)>]
type DateTimeKind

Member nameDescription
Supported by the XNA FrameworkSupported by Portable Class LibraryLocalThe time represented is local time.
Supported by the XNA FrameworkSupported by Portable Class LibraryUnspecifiedThe time represented is not specified as either local time or Coordinated Universal Time (UTC).
Supported by the XNA FrameworkSupported by Portable Class LibraryUtcThe 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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

XNA Framework

Supported in: 3.0, 2.0, 1.0

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft