Assembly: System.Data (in System.Data.dll)
|DateTime is always stored in Local. If or is assigned to a column in this mode, it is first converted into Local. Serialization in this mode is always performed in Local. There is an offset during serialization.|
|DateTime is always stored in Unspecified. If or is assigned to a column in this mode, it is first converted into . Serialization in this mode does not cause an offset.|
|DateTime is stored in Unspecified. If or is assigned to a column in this mode, it is first converted into . Serialization in this mode causes offset. This is the default behavior and is backward compatible. This option should be thought of as being Unspecified in storage but applying an offset that is similar to during serialization.|
|DateTime is stored in Universal Coordinated Time (UTC). If or is assigned to a column in this mode, it is first converted into Utc format. Serialization in this mode is always performed in Utc. There is no offset during serialization.|
cannot be set on non-DateTime columns. Setting the DateTimeMode property with the default value l on non-DateTime columns is permitted. Modifying the column data type from DateTime to any other type resets the DateTimeMode to the default value .
Checking schema for merging, Relations, and ForeignKeyConstraints can be performed between DateTime columns with matching DateTimeMode properties. Otherwise the columns should be considered as non-matching on schema. The only exception is between and . It is permitted to have a relation or a ForeignKeyConstraint between two DateTime columns with one in Unspecified and other in UnspecifiedLocal DateTimeMode.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC, Xbox 360, Zune
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.