Convert UTC to the Local Time Zone and Vice Versa in T-SQL, with Automatic Handling of Daylight Saving Time changes.
With the introduction of the AT TIME ZONE
feature in SQL Server 2016, what once plagued developers as convoluted datetime conversions has now transformed into an effortless endeavor. This feature has turned the tide, simplifying the conversion process and rendering these intricate date-time transformations far more manageable.
Convert UTC to Local Time Zones
This T-SQL code below demonstrates how to generate and store a series of time conversions between different time zones using the AT TIME ZONE
clause. Here's a breakdown of what the code does:
-
It begins by declaring a variable
@IsSourceTimeZoneUTC
as a bit flag. This variable controls whether the source time zone should be UTC (1) or the current time zone (0). -
A table variable named
@Results
is created to store the results of the time conversions. -
Another table variable
@TimeZoneTable
is established to store the list of time zone names obtained from thesys.time_zone_info
system table. -
The
@TimeZoneTable
is populated with time zone names. -
A cursor named
TimeZoneCursor
is declared to loop through the time zones stored in@TimeZoneTable
. -
The cursor loop begins with opening the
TimeZoneCursor
and fetching the first time zone (@CurrentTimeZone
) from the table. -
Within the loop, two conditional branches are used to perform conversions based on the value of
@IsSourceTimeZoneUTC
. If@IsSourceTimeZoneUTC
is 1, the conversion is from UTC to the current time zone; otherwise, it's from the current time zone to UTC. -
Inside each conditional branch, the converted data is inserted into the
@Results
table along with the original data and a SQL query string representing the conversion. -
The cursor loop continues by fetching the next time zone from the table until all time zones have been processed.
-
Once the cursor loop is done, the cursor is closed and deallocated to free up resources.
-
The final step involves selecting all the data stored in the
@Results
table, which displays the details of the performed time zone conversions.
This script allows you to systematically convert times between various time zones, capturing both the source and target time zone details, the converted times, and the corresponding SQL query for each conversion. It provides a practical illustration of how the AT TIME ZONE
clause can be utilized in different scenarios.
DECLARE @IsSourceTimeZoneUTC BIT = 1;
DECLARE @Results TABLE
(
SourceTimeZone NVARCHAR(100),
SourceTime DATETIME,
TargetTimeZone NVARCHAR(100),
TargetTime DATETIMEOFFSET,
SelectQuery NVARCHAR(100)
)
-- Populate the @TimeZoneTable with the time zones from sys.time_zone_info
DECLARE @TimeZoneTable TABLE
(
TimeZoneName NVARCHAR(100)
)
INSERT INTO @TimeZoneTable
SELECT name
FROM sys.time_zone_info;
DECLARE @CurrentTimeZone NVARCHAR(100);
-- Declare a cursor to loop through the time zones
DECLARE TimeZoneCursor CURSOR FOR SELECT TimeZoneName FROM @TimeZoneTable;
OPEN TimeZoneCursor;
FETCH NEXT FROM TimeZoneCursor
INTO @CurrentTimeZone;
-- Loop through each time zone and perform time conversion
WHILE @@FETCH_STATUS = 0
BEGIN
IF (@IsSourceTimeZoneUTC = 1)
BEGIN
INSERT INTO @Results
(
SourceTimeZone,
SourceTime,
TargetTimeZone,
TargetTime,
SelectQuery
)
SELECT 'UTC',
GETUTCDATE(),
@CurrentTimeZone,
GETUTCDATE()AT TIME ZONE 'UTC' AT TIME ZONE @CurrentTimeZone,
CONCAT('SELECT GETUTCDATE() AT TIME ZONE ''UTC'' AT TIME ZONE ''', @CurrentTimeZone, '''');
END
ELSE
BEGIN
INSERT INTO @Results
(
SourceTimeZone,
SourceTime,
TargetTimeZone,
TargetTime,
SelectQuery
)
SELECT @CurrentTimeZone,
GETDATE(),
'UTC',
GETDATE()AT TIME ZONE @CurrentTimeZone AT TIME ZONE 'UTC',
CONCAT('SELECT GETDATE() AT TIME ZONE ''', @CurrentTimeZone, ''' AT TIME ZONE ''UTC''');
END
FETCH NEXT FROM TimeZoneCursor
INTO @CurrentTimeZone;
END
CLOSE TimeZoneCursor;
DEALLOCATE TimeZoneCursor;
SELECT *
FROM @Results
SourceTimeZone | SourceTime | TargetTimeZone | TargetTime | SelectQuery |
---|---|---|---|---|
UTC | 2023-08-18 20:57:20.430 | Dateline Standard Time | 2023-08-18 08:57:20.4300000 -12:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Dateline Standard Time' |
UTC | 2023-08-18 20:57:20.430 | UTC-11 | 2023-08-18 09:57:20.4300000 -11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC-11' |
UTC | 2023-08-18 20:57:20.430 | Aleutian Standard Time | 2023-08-18 11:57:20.4300000 -09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Aleutian Standard Time' |
UTC | 2023-08-18 20:57:20.430 | Hawaiian Standard Time | 2023-08-18 10:57:20.4300000 -10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Hawaiian Standard Time' |
UTC | 2023-08-18 20:57:20.430 | Marquesas Standard Time | 2023-08-18 11:27:20.4300000 -09:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Marquesas Standard Time' |
UTC | 2023-08-18 20:57:20.430 | Alaskan Standard Time | 2023-08-18 12:57:20.4300000 -08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Alaskan Standard Time' |
UTC | 2023-08-18 20:57:20.430 | UTC-09 | 2023-08-18 11:57:20.4300000 -09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC-09' |
UTC | 2023-08-18 20:57:20.430 | Pacific Standard Time (Mexico) | 2023-08-18 13:57:20.4300000 -07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Pacific Standard Time (Mexico)' |
UTC | 2023-08-18 20:57:20.430 | UTC-08 | 2023-08-18 12:57:20.4300000 -08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC-08' |
UTC | 2023-08-18 20:57:20.433 | Pacific Standard Time | 2023-08-18 13:57:20.4330000 -07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Pacific Standard Time' |
UTC | 2023-08-18 20:57:20.433 | US Mountain Standard Time | 2023-08-18 13:57:20.4330000 -07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'US Mountain Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Mountain Standard Time (Mexico) | 2023-08-18 13:57:20.4330000 -07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Mountain Standard Time (Mexico)' |
UTC | 2023-08-18 20:57:20.433 | Mountain Standard Time | 2023-08-18 14:57:20.4330000 -06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Mountain Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Yukon Standard Time | 2023-08-18 13:57:20.4330000 -07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Yukon Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Central America Standard Time | 2023-08-18 14:57:20.4330000 -06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central America Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Central Standard Time | 2023-08-18 15:57:20.4330000 -05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Easter Island Standard Time | 2023-08-18 14:57:20.4330000 -06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Easter Island Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Central Standard Time (Mexico) | 2023-08-18 14:57:20.4330000 -06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Standard Time (Mexico)' |
UTC | 2023-08-18 20:57:20.433 | Canada Central Standard Time | 2023-08-18 14:57:20.4330000 -06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Canada Central Standard Time' |
UTC | 2023-08-18 20:57:20.433 | SA Pacific Standard Time | 2023-08-18 15:57:20.4330000 -05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'SA Pacific Standard Time' |
UTC | 2023-08-18 20:57:20.433 | Eastern Standard Time (Mexico) | 2023-08-18 15:57:20.4330000 -05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Eastern Standard Time (Mexico)' |
UTC | 2023-08-18 20:57:20.433 | Eastern Standard Time | 2023-08-18 16:57:20.4330000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Eastern Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Haiti Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Haiti Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Cuba Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Cuba Standard Time' |
UTC | 2023-08-18 20:57:20.437 | US Eastern Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'US Eastern Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Turks And Caicos Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Turks And Caicos Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Paraguay Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Paraguay Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Atlantic Standard Time | 2023-08-18 17:57:20.4370000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Atlantic Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Venezuela Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Venezuela Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Central Brazilian Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Brazilian Standard Time' |
UTC | 2023-08-18 20:57:20.437 | SA Western Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'SA Western Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Pacific SA Standard Time | 2023-08-18 16:57:20.4370000 -04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Pacific SA Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Newfoundland Standard Time | 2023-08-18 18:27:20.4370000 -02:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Newfoundland Standard Time' |
UTC | 2023-08-18 20:57:20.437 | Tocantins Standard Time | 2023-08-18 17:57:20.4370000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Tocantins Standard Time' |
UTC | 2023-08-18 20:57:20.437 | E. South America Standard Time | 2023-08-18 17:57:20.4370000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'E. South America Standard Time' |
UTC | 2023-08-18 20:57:20.440 | SA Eastern Standard Time | 2023-08-18 17:57:20.4400000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'SA Eastern Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Argentina Standard Time | 2023-08-18 17:57:20.4400000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Argentina Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Greenland Standard Time | 2023-08-18 18:57:20.4400000 -02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Greenland Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Montevideo Standard Time | 2023-08-18 17:57:20.4400000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Montevideo Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Magallanes Standard Time | 2023-08-18 17:57:20.4400000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Magallanes Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Saint Pierre Standard Time | 2023-08-18 18:57:20.4400000 -02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Saint Pierre Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Bahia Standard Time | 2023-08-18 17:57:20.4400000 -03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Bahia Standard Time' |
UTC | 2023-08-18 20:57:20.440 | UTC-02 | 2023-08-18 18:57:20.4400000 -02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC-02' |
UTC | 2023-08-18 20:57:20.440 | Mid-Atlantic Standard Time | 2023-08-18 19:57:20.4400000 -01:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Mid-Atlantic Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Azores Standard Time | 2023-08-18 20:57:20.4400000 +00:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Azores Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Cape Verde Standard Time | 2023-08-18 19:57:20.4400000 -01:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Cape Verde Standard Time' |
UTC | 2023-08-18 20:57:20.440 | UTC | 2023-08-18 20:57:20.4400000 +00:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC' |
UTC | 2023-08-18 20:57:20.440 | GMT Standard Time | 2023-08-18 21:57:20.4400000 +01:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'GMT Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Greenwich Standard Time | 2023-08-18 20:57:20.4400000 +00:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Greenwich Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Sao Tome Standard Time | 2023-08-18 20:57:20.4400000 +00:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Sao Tome Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Morocco Standard Time | 2023-08-18 21:57:20.4400000 +01:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Morocco Standard Time' |
UTC | 2023-08-18 20:57:20.440 | W. Europe Standard Time | 2023-08-18 22:57:20.4400000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'W. Europe Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Central Europe Standard Time | 2023-08-18 22:57:20.4400000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Europe Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Romance Standard Time | 2023-08-18 22:57:20.4400000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Romance Standard Time' |
UTC | 2023-08-18 20:57:20.440 | Central European Standard Time | 2023-08-18 22:57:20.4400000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central European Standard Time' |
UTC | 2023-08-18 20:57:20.443 | W. Central Africa Standard Time | 2023-08-18 21:57:20.4430000 +01:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'W. Central Africa Standard Time' |
UTC | 2023-08-18 20:57:20.443 | GTB Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'GTB Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Middle East Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Middle East Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Egypt Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Egypt Standard Time' |
UTC | 2023-08-18 20:57:20.443 | E. Europe Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'E. Europe Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Syria Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Syria Standard Time' |
UTC | 2023-08-18 20:57:20.443 | West Bank Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'West Bank Standard Time' |
UTC | 2023-08-18 20:57:20.443 | South Africa Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'South Africa Standard Time' |
UTC | 2023-08-18 20:57:20.443 | FLE Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'FLE Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Israel Standard Time | 2023-08-18 23:57:20.4430000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Israel Standard Time' |
UTC | 2023-08-18 20:57:20.443 | South Sudan Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'South Sudan Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Kaliningrad Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Kaliningrad Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Sudan Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Sudan Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Libya Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Libya Standard Time' |
UTC | 2023-08-18 20:57:20.443 | Namibia Standard Time | 2023-08-18 22:57:20.4430000 +02:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Namibia Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Jordan Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Jordan Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Arabic Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Arabic Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Turkey Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Turkey Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Arab Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Arab Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Belarus Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Belarus Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Russian Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Russian Standard Time' |
UTC | 2023-08-18 20:57:20.447 | E. Africa Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'E. Africa Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Volgograd Standard Time | 2023-08-18 23:57:20.4470000 +03:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Volgograd Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Iran Standard Time | 2023-08-19 00:27:20.4470000 +03:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Iran Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Arabian Standard Time | 2023-08-19 00:57:20.4470000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Arabian Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Astrakhan Standard Time | 2023-08-19 00:57:20.4470000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Astrakhan Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Azerbaijan Standard Time | 2023-08-19 00:57:20.4470000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Azerbaijan Standard Time' |
UTC | 2023-08-18 20:57:20.447 | Russia Time Zone 3 | 2023-08-19 00:57:20.4470000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Russia Time Zone 3' |
UTC | 2023-08-18 20:57:20.447 | Mauritius Standard Time | 2023-08-19 00:57:20.4470000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Mauritius Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Saratov Standard Time | 2023-08-19 00:57:20.4500000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Saratov Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Georgian Standard Time | 2023-08-19 00:57:20.4500000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Georgian Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Caucasus Standard Time | 2023-08-19 00:57:20.4500000 +04:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Caucasus Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Afghanistan Standard Time | 2023-08-19 01:27:20.4500000 +04:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Afghanistan Standard Time' |
UTC | 2023-08-18 20:57:20.450 | West Asia Standard Time | 2023-08-19 01:57:20.4500000 +05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'West Asia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Ekaterinburg Standard Time | 2023-08-19 01:57:20.4500000 +05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Ekaterinburg Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Pakistan Standard Time | 2023-08-19 01:57:20.4500000 +05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Pakistan Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Qyzylorda Standard Time | 2023-08-19 01:57:20.4500000 +05:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Qyzylorda Standard Time' |
UTC | 2023-08-18 20:57:20.450 | India Standard Time | 2023-08-19 02:27:20.4500000 +05:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'India Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Sri Lanka Standard Time | 2023-08-19 02:27:20.4500000 +05:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Sri Lanka Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Nepal Standard Time | 2023-08-19 02:42:20.4500000 +05:45 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Nepal Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Central Asia Standard Time | 2023-08-19 02:57:20.4500000 +06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Asia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Bangladesh Standard Time | 2023-08-19 02:57:20.4500000 +06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Bangladesh Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Omsk Standard Time | 2023-08-19 02:57:20.4500000 +06:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Omsk Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Myanmar Standard Time | 2023-08-19 03:27:20.4500000 +06:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Myanmar Standard Time' |
UTC | 2023-08-18 20:57:20.450 | SE Asia Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'SE Asia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Altai Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Altai Standard Time' |
UTC | 2023-08-18 20:57:20.450 | W. Mongolia Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'W. Mongolia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | North Asia Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'North Asia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | N. Central Asia Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'N. Central Asia Standard Time' |
UTC | 2023-08-18 20:57:20.450 | Tomsk Standard Time | 2023-08-19 03:57:20.4500000 +07:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Tomsk Standard Time' |
UTC | 2023-08-18 20:57:20.453 | China Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'China Standard Time' |
UTC | 2023-08-18 20:57:20.453 | North Asia East Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'North Asia East Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Singapore Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Singapore Standard Time' |
UTC | 2023-08-18 20:57:20.453 | W. Australia Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'W. Australia Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Taipei Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Taipei Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Ulaanbaatar Standard Time | 2023-08-19 04:57:20.4530000 +08:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Ulaanbaatar Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Aus Central W. Standard Time | 2023-08-19 05:42:20.4530000 +08:45 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Aus Central W. Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Transbaikal Standard Time | 2023-08-19 05:57:20.4530000 +09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Transbaikal Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Tokyo Standard Time | 2023-08-19 05:57:20.4530000 +09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Tokyo Standard Time' |
UTC | 2023-08-18 20:57:20.453 | North Korea Standard Time | 2023-08-19 05:57:20.4530000 +09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'North Korea Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Korea Standard Time | 2023-08-19 05:57:20.4530000 +09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Korea Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Yakutsk Standard Time | 2023-08-19 05:57:20.4530000 +09:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Yakutsk Standard Time' |
UTC | 2023-08-18 20:57:20.453 | Cen. Australia Standard Time | 2023-08-19 06:27:20.4530000 +09:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Cen. Australia Standard Time' |
UTC | 2023-08-18 20:57:20.453 | AUS Central Standard Time | 2023-08-19 06:27:20.4530000 +09:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'AUS Central Standard Time' |
UTC | 2023-08-18 20:57:20.453 | E. Australia Standard Time | 2023-08-19 06:57:20.4530000 +10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'E. Australia Standard Time' |
UTC | 2023-08-18 20:57:20.457 | AUS Eastern Standard Time | 2023-08-19 06:57:20.4570000 +10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'AUS Eastern Standard Time' |
UTC | 2023-08-18 20:57:20.457 | West Pacific Standard Time | 2023-08-19 06:57:20.4570000 +10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'West Pacific Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Tasmania Standard Time | 2023-08-19 06:57:20.4570000 +10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Tasmania Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Vladivostok Standard Time | 2023-08-19 06:57:20.4570000 +10:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Vladivostok Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Lord Howe Standard Time | 2023-08-19 07:27:20.4570000 +10:30 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Lord Howe Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Bougainville Standard Time | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Bougainville Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Russia Time Zone 10 | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Russia Time Zone 10' |
UTC | 2023-08-18 20:57:20.457 | Magadan Standard Time | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Magadan Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Norfolk Standard Time | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Norfolk Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Sakhalin Standard Time | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Sakhalin Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Central Pacific Standard Time | 2023-08-19 07:57:20.4570000 +11:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Central Pacific Standard Time' |
UTC | 2023-08-18 20:57:20.457 | Russia Time Zone 11 | 2023-08-19 08:57:20.4570000 +12:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Russia Time Zone 11' |
UTC | 2023-08-18 20:57:20.457 | New Zealand Standard Time | 2023-08-19 08:57:20.4570000 +12:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'New Zealand Standard Time' |
UTC | 2023-08-18 20:57:20.457 | UTC+12 | 2023-08-19 08:57:20.4570000 +12:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC+12' |
UTC | 2023-08-18 20:57:20.457 | Fiji Standard Time | 2023-08-19 08:57:20.4570000 +12:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Fiji Standard Time' |
UTC | 2023-08-18 20:57:20.460 | Kamchatka Standard Time | 2023-08-19 09:57:20.4600000 +13:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Kamchatka Standard Time' |
UTC | 2023-08-18 20:57:20.460 | Chatham Islands Standard Time | 2023-08-19 09:42:20.4600000 +12:45 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Chatham Islands Standard Time' |
UTC | 2023-08-18 20:57:20.460 | UTC+13 | 2023-08-19 09:57:20.4600000 +13:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC+13' |
UTC | 2023-08-18 20:57:20.460 | Tonga Standard Time | 2023-08-19 09:57:20.4600000 +13:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Tonga Standard Time' |
UTC | 2023-08-18 20:57:20.460 | Samoa Standard Time | 2023-08-19 09:57:20.4600000 +13:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Samoa Standard Time' |
UTC | 2023-08-18 20:57:20.460 | Line Islands Standard Time | 2023-08-19 10:57:20.4600000 +14:00 | SELECT GETUTCDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'Line Islands Standard Time' |
Convert Local Time to UTC
This is the same query as above except we set @IsSourceTimeZoneUTC
to 0 to demonstrate converting Local
time zone to UTC
.
DECLARE @IsSourceTimeZoneUTC BIT = 0;
DECLARE @Results TABLE
(
SourceTimeZone NVARCHAR(100),
SourceTime DATETIME,
TargetTimeZone NVARCHAR(100),
TargetTime DATETIMEOFFSET,
SelectQuery NVARCHAR(100)
)
-- Populate the @TimeZoneTable with the time zones from sys.time_zone_info
DECLARE @TimeZoneTable TABLE
(
TimeZoneName NVARCHAR(100)
)
INSERT INTO @TimeZoneTable
SELECT name
FROM sys.time_zone_info;
DECLARE @CurrentTimeZone NVARCHAR(100);
-- Declare a cursor to loop through the time zones
DECLARE TimeZoneCursor CURSOR FOR SELECT TimeZoneName FROM @TimeZoneTable;
OPEN TimeZoneCursor;
FETCH NEXT FROM TimeZoneCursor
INTO @CurrentTimeZone;
-- Loop through each time zone and perform time conversion
WHILE @@FETCH_STATUS = 0
BEGIN
IF (@IsSourceTimeZoneUTC = 1)
BEGIN
INSERT INTO @Results
(
SourceTimeZone,
SourceTime,
TargetTimeZone,
TargetTime,
SelectQuery
)
SELECT 'UTC',
GETUTCDATE(),
@CurrentTimeZone,
GETUTCDATE()AT TIME ZONE 'UTC' AT TIME ZONE @CurrentTimeZone,
CONCAT('SELECT GETUTCDATE() AT TIME ZONE ''UTC'' AT TIME ZONE ''', @CurrentTimeZone, '''');
END
ELSE
BEGIN
INSERT INTO @Results
(
SourceTimeZone,
SourceTime,
TargetTimeZone,
TargetTime,
SelectQuery
)
SELECT @CurrentTimeZone,
GETDATE(),
'UTC',
GETDATE()AT TIME ZONE @CurrentTimeZone AT TIME ZONE 'UTC',
CONCAT('SELECT GETDATE() AT TIME ZONE ''', @CurrentTimeZone, ''' AT TIME ZONE ''UTC''');
END
FETCH NEXT FROM TimeZoneCursor
INTO @CurrentTimeZone;
END
CLOSE TimeZoneCursor;
DEALLOCATE TimeZoneCursor;
SELECT *
FROM @Results
SourceTimeZone | SourceTime | TargetTimeZone | TargetTime | SelectQuery |
---|---|---|---|---|
Dateline Standard Time | 2023-08-18 21:57:20.480 | UTC | 2023-08-19 09:57:20.4800000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Dateline Standard Time' AT TIME ZONE 'UTC' |
UTC-11 | 2023-08-18 21:57:20.480 | UTC | 2023-08-19 08:57:20.4800000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC-11' AT TIME ZONE 'UTC' |
Aleutian Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 06:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Aleutian Standard Time' AT TIME ZONE 'UTC' |
Hawaiian Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 07:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Hawaiian Standard Time' AT TIME ZONE 'UTC' |
Marquesas Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 07:27:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Marquesas Standard Time' AT TIME ZONE 'UTC' |
Alaskan Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 05:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Alaskan Standard Time' AT TIME ZONE 'UTC' |
UTC-09 | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 06:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC-09' AT TIME ZONE 'UTC' |
Pacific Standard Time (Mexico) | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 04:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Pacific Standard Time (Mexico)' AT TIME ZONE 'UTC' |
UTC-08 | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 05:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC-08' AT TIME ZONE 'UTC' |
Pacific Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 04:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Pacific Standard Time' AT TIME ZONE 'UTC' |
US Mountain Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 04:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'US Mountain Standard Time' AT TIME ZONE 'UTC' |
Mountain Standard Time (Mexico) | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 04:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Mountain Standard Time (Mexico)' AT TIME ZONE 'UTC' |
Mountain Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 03:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Mountain Standard Time' AT TIME ZONE 'UTC' |
Yukon Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 04:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Yukon Standard Time' AT TIME ZONE 'UTC' |
Central America Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 03:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central America Standard Time' AT TIME ZONE 'UTC' |
Central Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 02:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Standard Time' AT TIME ZONE 'UTC' |
Easter Island Standard Time | 2023-08-18 21:57:20.483 | UTC | 2023-08-19 03:57:20.4830000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Easter Island Standard Time' AT TIME ZONE 'UTC' |
Central Standard Time (Mexico) | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 03:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Standard Time (Mexico)' AT TIME ZONE 'UTC' |
Canada Central Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 03:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Canada Central Standard Time' AT TIME ZONE 'UTC' |
SA Pacific Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 02:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'SA Pacific Standard Time' AT TIME ZONE 'UTC' |
Eastern Standard Time (Mexico) | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 02:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Eastern Standard Time (Mexico)' AT TIME ZONE 'UTC' |
Eastern Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Eastern Standard Time' AT TIME ZONE 'UTC' |
Haiti Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Haiti Standard Time' AT TIME ZONE 'UTC' |
Cuba Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Cuba Standard Time' AT TIME ZONE 'UTC' |
US Eastern Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'US Eastern Standard Time' AT TIME ZONE 'UTC' |
Turks And Caicos Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Turks And Caicos Standard Time' AT TIME ZONE 'UTC' |
Paraguay Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Paraguay Standard Time' AT TIME ZONE 'UTC' |
Atlantic Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 00:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Atlantic Standard Time' AT TIME ZONE 'UTC' |
Venezuela Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Venezuela Standard Time' AT TIME ZONE 'UTC' |
Central Brazilian Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Brazilian Standard Time' AT TIME ZONE 'UTC' |
SA Western Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'SA Western Standard Time' AT TIME ZONE 'UTC' |
Pacific SA Standard Time | 2023-08-18 21:57:20.487 | UTC | 2023-08-19 01:57:20.4870000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Pacific SA Standard Time' AT TIME ZONE 'UTC' |
Newfoundland Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:27:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Newfoundland Standard Time' AT TIME ZONE 'UTC' |
Tocantins Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Tocantins Standard Time' AT TIME ZONE 'UTC' |
E. South America Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'E. South America Standard Time' AT TIME ZONE 'UTC' |
SA Eastern Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'SA Eastern Standard Time' AT TIME ZONE 'UTC' |
Argentina Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Argentina Standard Time' AT TIME ZONE 'UTC' |
Greenland Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 23:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Greenland Standard Time' AT TIME ZONE 'UTC' |
Montevideo Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Montevideo Standard Time' AT TIME ZONE 'UTC' |
Magallanes Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Magallanes Standard Time' AT TIME ZONE 'UTC' |
Saint Pierre Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 23:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Saint Pierre Standard Time' AT TIME ZONE 'UTC' |
Bahia Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-19 00:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Bahia Standard Time' AT TIME ZONE 'UTC' |
UTC-02 | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 23:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC-02' AT TIME ZONE 'UTC' |
Mid-Atlantic Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 22:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Mid-Atlantic Standard Time' AT TIME ZONE 'UTC' |
Azores Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 21:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Azores Standard Time' AT TIME ZONE 'UTC' |
Cape Verde Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 22:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Cape Verde Standard Time' AT TIME ZONE 'UTC' |
UTC | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 21:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC' AT TIME ZONE 'UTC' |
GMT Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 20:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'GMT Standard Time' AT TIME ZONE 'UTC' |
Greenwich Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 21:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Greenwich Standard Time' AT TIME ZONE 'UTC' |
Sao Tome Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 21:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Sao Tome Standard Time' AT TIME ZONE 'UTC' |
Morocco Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 20:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Morocco Standard Time' AT TIME ZONE 'UTC' |
W. Europe Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 19:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'W. Europe Standard Time' AT TIME ZONE 'UTC' |
Central Europe Standard Time | 2023-08-18 21:57:20.490 | UTC | 2023-08-18 19:57:20.4900000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Europe Standard Time' AT TIME ZONE 'UTC' |
Romance Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Romance Standard Time' AT TIME ZONE 'UTC' |
Central European Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central European Standard Time' AT TIME ZONE 'UTC' |
W. Central Africa Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 20:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'W. Central Africa Standard Time' AT TIME ZONE 'UTC' |
GTB Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'GTB Standard Time' AT TIME ZONE 'UTC' |
Middle East Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Middle East Standard Time' AT TIME ZONE 'UTC' |
Egypt Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Egypt Standard Time' AT TIME ZONE 'UTC' |
E. Europe Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'E. Europe Standard Time' AT TIME ZONE 'UTC' |
Syria Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Syria Standard Time' AT TIME ZONE 'UTC' |
West Bank Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'West Bank Standard Time' AT TIME ZONE 'UTC' |
South Africa Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'South Africa Standard Time' AT TIME ZONE 'UTC' |
FLE Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'FLE Standard Time' AT TIME ZONE 'UTC' |
Israel Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 18:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Israel Standard Time' AT TIME ZONE 'UTC' |
South Sudan Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'South Sudan Standard Time' AT TIME ZONE 'UTC' |
Kaliningrad Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Kaliningrad Standard Time' AT TIME ZONE 'UTC' |
Sudan Standard Time | 2023-08-18 21:57:20.493 | UTC | 2023-08-18 19:57:20.4930000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Sudan Standard Time' AT TIME ZONE 'UTC' |
Libya Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 19:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Libya Standard Time' AT TIME ZONE 'UTC' |
Namibia Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 19:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Namibia Standard Time' AT TIME ZONE 'UTC' |
Jordan Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Jordan Standard Time' AT TIME ZONE 'UTC' |
Arabic Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Arabic Standard Time' AT TIME ZONE 'UTC' |
Turkey Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Turkey Standard Time' AT TIME ZONE 'UTC' |
Arab Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Arab Standard Time' AT TIME ZONE 'UTC' |
Belarus Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Belarus Standard Time' AT TIME ZONE 'UTC' |
Russian Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Russian Standard Time' AT TIME ZONE 'UTC' |
E. Africa Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'E. Africa Standard Time' AT TIME ZONE 'UTC' |
Volgograd Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Volgograd Standard Time' AT TIME ZONE 'UTC' |
Iran Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 18:27:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Iran Standard Time' AT TIME ZONE 'UTC' |
Arabian Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 17:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Arabian Standard Time' AT TIME ZONE 'UTC' |
Astrakhan Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 17:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Astrakhan Standard Time' AT TIME ZONE 'UTC' |
Azerbaijan Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 17:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Azerbaijan Standard Time' AT TIME ZONE 'UTC' |
Russia Time Zone 3 | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 17:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Russia Time Zone 3' AT TIME ZONE 'UTC' |
Mauritius Standard Time | 2023-08-18 21:57:20.497 | UTC | 2023-08-18 17:57:20.4970000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Mauritius Standard Time' AT TIME ZONE 'UTC' |
Saratov Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 17:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Saratov Standard Time' AT TIME ZONE 'UTC' |
Georgian Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 17:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Georgian Standard Time' AT TIME ZONE 'UTC' |
Caucasus Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 17:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Caucasus Standard Time' AT TIME ZONE 'UTC' |
Afghanistan Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 17:27:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Afghanistan Standard Time' AT TIME ZONE 'UTC' |
West Asia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'West Asia Standard Time' AT TIME ZONE 'UTC' |
Ekaterinburg Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Ekaterinburg Standard Time' AT TIME ZONE 'UTC' |
Pakistan Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Pakistan Standard Time' AT TIME ZONE 'UTC' |
Qyzylorda Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Qyzylorda Standard Time' AT TIME ZONE 'UTC' |
India Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:27:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'India Standard Time' AT TIME ZONE 'UTC' |
Sri Lanka Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:27:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Sri Lanka Standard Time' AT TIME ZONE 'UTC' |
Nepal Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 16:12:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Nepal Standard Time' AT TIME ZONE 'UTC' |
Central Asia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 15:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Asia Standard Time' AT TIME ZONE 'UTC' |
Bangladesh Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 15:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Bangladesh Standard Time' AT TIME ZONE 'UTC' |
Omsk Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 15:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Omsk Standard Time' AT TIME ZONE 'UTC' |
Myanmar Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 15:27:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Myanmar Standard Time' AT TIME ZONE 'UTC' |
SE Asia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'SE Asia Standard Time' AT TIME ZONE 'UTC' |
Altai Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Altai Standard Time' AT TIME ZONE 'UTC' |
W. Mongolia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'W. Mongolia Standard Time' AT TIME ZONE 'UTC' |
North Asia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'North Asia Standard Time' AT TIME ZONE 'UTC' |
N. Central Asia Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'N. Central Asia Standard Time' AT TIME ZONE 'UTC' |
Tomsk Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 14:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Tomsk Standard Time' AT TIME ZONE 'UTC' |
China Standard Time | 2023-08-18 21:57:20.500 | UTC | 2023-08-18 13:57:20.5000000 +00:00 | SELECT GETDATE() AT TIME ZONE 'China Standard Time' AT TIME ZONE 'UTC' |
North Asia East Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'North Asia East Standard Time' AT TIME ZONE 'UTC' |
Singapore Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Singapore Standard Time' AT TIME ZONE 'UTC' |
W. Australia Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'W. Australia Standard Time' AT TIME ZONE 'UTC' |
Taipei Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Taipei Standard Time' AT TIME ZONE 'UTC' |
Ulaanbaatar Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Ulaanbaatar Standard Time' AT TIME ZONE 'UTC' |
Aus Central W. Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 13:12:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Aus Central W. Standard Time' AT TIME ZONE 'UTC' |
Transbaikal Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Transbaikal Standard Time' AT TIME ZONE 'UTC' |
Tokyo Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Tokyo Standard Time' AT TIME ZONE 'UTC' |
North Korea Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'North Korea Standard Time' AT TIME ZONE 'UTC' |
Korea Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Korea Standard Time' AT TIME ZONE 'UTC' |
Yakutsk Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Yakutsk Standard Time' AT TIME ZONE 'UTC' |
Cen. Australia Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:27:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Cen. Australia Standard Time' AT TIME ZONE 'UTC' |
AUS Central Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 12:27:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'AUS Central Standard Time' AT TIME ZONE 'UTC' |
E. Australia Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 11:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'E. Australia Standard Time' AT TIME ZONE 'UTC' |
AUS Eastern Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 11:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'AUS Eastern Standard Time' AT TIME ZONE 'UTC' |
West Pacific Standard Time | 2023-08-18 21:57:20.503 | UTC | 2023-08-18 11:57:20.5030000 +00:00 | SELECT GETDATE() AT TIME ZONE 'West Pacific Standard Time' AT TIME ZONE 'UTC' |
Tasmania Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 11:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Tasmania Standard Time' AT TIME ZONE 'UTC' |
Vladivostok Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 11:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Vladivostok Standard Time' AT TIME ZONE 'UTC' |
Lord Howe Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 11:27:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Lord Howe Standard Time' AT TIME ZONE 'UTC' |
Bougainville Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Bougainville Standard Time' AT TIME ZONE 'UTC' |
Russia Time Zone 10 | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Russia Time Zone 10' AT TIME ZONE 'UTC' |
Magadan Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Magadan Standard Time' AT TIME ZONE 'UTC' |
Norfolk Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Norfolk Standard Time' AT TIME ZONE 'UTC' |
Sakhalin Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Sakhalin Standard Time' AT TIME ZONE 'UTC' |
Central Pacific Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 10:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Central Pacific Standard Time' AT TIME ZONE 'UTC' |
Russia Time Zone 11 | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 09:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Russia Time Zone 11' AT TIME ZONE 'UTC' |
New Zealand Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 09:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'New Zealand Standard Time' AT TIME ZONE 'UTC' |
UTC+12 | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 09:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC+12' AT TIME ZONE 'UTC' |
Fiji Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 09:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Fiji Standard Time' AT TIME ZONE 'UTC' |
Kamchatka Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 08:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Kamchatka Standard Time' AT TIME ZONE 'UTC' |
Chatham Islands Standard Time | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 09:12:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Chatham Islands Standard Time' AT TIME ZONE 'UTC' |
UTC+13 | 2023-08-18 21:57:20.507 | UTC | 2023-08-18 08:57:20.5070000 +00:00 | SELECT GETDATE() AT TIME ZONE 'UTC+13' AT TIME ZONE 'UTC' |
Tonga Standard Time | 2023-08-18 21:57:20.510 | UTC | 2023-08-18 08:57:20.5100000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Tonga Standard Time' AT TIME ZONE 'UTC' |
Samoa Standard Time | 2023-08-18 21:57:20.510 | UTC | 2023-08-18 08:57:20.5100000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Samoa Standard Time' AT TIME ZONE 'UTC' |
Line Islands Standard Time | 2023-08-18 21:57:20.510 | UTC | 2023-08-18 07:57:20.5100000 +00:00 | SELECT GETDATE() AT TIME ZONE 'Line Islands Standard Time' AT TIME ZONE 'UTC' |