Skip to content

Instantly share code, notes, and snippets.

@heobay
Created December 17, 2013 02:21
Show Gist options
  • Select an option

  • Save heobay/7998910 to your computer and use it in GitHub Desktop.

Select an option

Save heobay/7998910 to your computer and use it in GitHub Desktop.
SELECT LEFT(CONVERT(VARCHAR, @myDateTime, 120), 10)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment