Skip to content

Instantly share code, notes, and snippets.

View drumsta's full-sized avatar
😹
Curious...

ꋬꋪꋖꌈꋪꁲꌚ ꂟꋪꌈꂵꌚꋖꁲ drumsta

😹
Curious...
View GitHub Profile
@drumsta
drumsta / UTCDateObjects.sql
Last active January 18, 2023 13:50
Sample MS SQL gist to convert Local time to UTC time.
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'dbo.TimeZoneInfo') AND type IN (N'U'))
DROP TABLE dbo.TimeZoneInfo
CREATE TABLE dbo.TimeZoneInfo (
TimeZoneID int IDENTITY(1, 1) NOT NULL,
Display nvarchar(255) NOT NULL,
Bias smallint NOT NULL,
StdBias smallint NOT NULL,
DltBias smallint NOT NULL,
StdMonth smallint NOT NULL,