'DeclarationPublic Property Database As TimeZoneInfo
public TimeZoneInfo Database {get; set;}
public: property TimeZoneInfo^ Database { TimeZoneInfo^ get(); void set ( TimeZoneInfo^ value); }
This determines the time zone to be used for all conversions of date and time values from the database/dataprovider to the client's time zone (see also TimeZoneInformation.Client). This is particularly important for distributed applications such as server/client applications or web applications, where data sources, applications and clients may be located on different systems in different time zones.
'DeclarationPublic Property Database As TimeZoneInfo
public TimeZoneInfo Database {get; set;}
public: property TimeZoneInfo^ Database { TimeZoneInfo^ get(); void set ( TimeZoneInfo^ value); }
The values for the possible time zones can be determined in the Windows registry under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones or with the help of System.TimeZoneInfo.GetSystemTimeZones();.
Note: Values from the Internet Assigned Numbers Authority (IANA) are not supported; only values/IDs from Microsoft Windows time zones are supported.
Platforms: Windows 10 (Version 21H2 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
.NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10