/ Published in: SQL
Get TimeZone SqlServer
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
DECLARE @TimeZone VARCHAR(50) EXEC MASTER.dbo.xp_regread 'HKEY_LOCAL_MACHINE', 'SYSTEM\CurrentControlSet\Control\TimeZoneInformation', 'TimeZoneKeyName',@TimeZone OUT SELECT @TimeZone