Skip to content

Instantly share code, notes, and snippets.

@hoffstein
Created July 18, 2011 15:39
Show Gist options
  • Save hoffstein/1089894 to your computer and use it in GitHub Desktop.
Save hoffstein/1089894 to your computer and use it in GitHub Desktop.
TSQL truncate time (returns just the date at 12:00:00AM)
DATEADD(d, DATEDIFF(d, 0, @date), 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment