Created
September 14, 2022 15:43
-
-
Save NaserKhoshfetrat/268c6152c1e5d342e5a061abdea6623c to your computer and use it in GitHub Desktop.
sqlserver snippet
This file contains hidden or 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
SWITCHOFFSET(CONVERT(datetimeoffset, [CreatedAt]), DATENAME(TzOffset, SYSDATETIMEOFFSET())) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment