Created
December 9, 2013 11:34
-
-
Save alancoleman/7870939 to your computer and use it in GitHub Desktop.
Output date format using DATE_FORMAT
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
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