Skip to content

Instantly share code, notes, and snippets.

@alancoleman
Created December 9, 2013 11:34
Show Gist options
  • Save alancoleman/7870939 to your computer and use it in GitHub Desktop.
Save alancoleman/7870939 to your computer and use it in GitHub Desktop.
Output date format using DATE_FORMAT
DATE_FORMAT(date,'%Y-%m-%d') AS 'date_new_format'
-- Returns 2013-12-08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment