Skip to content

Instantly share code, notes, and snippets.

@Royovo
Created March 16, 2018 06:55
Show Gist options
  • Save Royovo/b4327c83a3346ca9e2330b535e66ace9 to your computer and use it in GitHub Desktop.
Save Royovo/b4327c83a3346ca9e2330b535e66ace9 to your computer and use it in GitHub Desktop.
DECLARE @dt DATETIME
SET @dt = GETDATE()
@dt = DATEADD(ms,-DATEPART(ms,@dt),@dt)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment