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)

No code example is currently available or this language may not be supported.

Member nameDescription
Supported by Silverlight for Windows PhoneSupported by Xbox 360UnspecifiedThe time represented is not specified as either local time or Coordinated Universal Time (UTC).
Supported by Silverlight for Windows PhoneSupported by Xbox 360UtcThe time represented is UTC.
Supported by Silverlight for Windows PhoneSupported by Xbox 360LocalThe time represented is local time.

A member of the DateTimeKind enumeration is returned by the DateTime::Kind property.

The members of DateTimeKind are used with DateTime values in conversion operations between local time and Coordinated Universal Time (UTC), but not in any comparison or arithmetic operation.

The following code example uses the SpecifyKind method to demonstrate how the Kind property influences the ToLocalTime and ToUniversalTime conversion methods.

No code example is currently available or this language may not be supported.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: