Created
August 30, 2021 16:40
-
-
Save zikato/eb57e4d1a844fb52f8e4a3d49f767e97 to your computer and use it in GitHub Desktop.
SQL Snippets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SELECT * FROM sys.time_zone_info WHERE [name] LIKE '%Europe%' /* Find your time zone */ | |
*/ | |
SELECT DATETIMEFROMPARTS(2021, 7, 28, 12, 45, 0, 0) /* Pick your date */ | |
AT TIME ZONE 'UTC' /* Change to source time zone */ | |
AT TIME ZONE 'Central European Standard Time' /* Change to target time zone */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment