DateTimeKind Enumeration
.NET Framework 4
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)
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.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
DateTimeKind in WCF Serialization
Take care of DateTimeKind in Serialitzation , DateTimeKind.Unspecified and DateTimeKind.UTC date times send straight forward, but date times with DateTimeKind.Local will be converted from source computer local time time zone to destination computer time zone.
For example : 10:00 AM Local in a UTC Server , will be received as 11:00 in a Europe/Madrid (GMT+1) client or 12:00 on a (GMT+2) client.
For example : 10:00 AM Local in a UTC Server , will be received as 11:00 in a Europe/Madrid (GMT+1) client or 12:00 on a (GMT+2) client.
- 12/2/2011
- Antonio Jesús Dávila Molina
- 1/3/2012
- Thomas Lee