Skip to content

Instantly share code, notes, and snippets.

@gavinblair
Created September 1, 2010 16:03
Show Gist options
  • Select an option

  • Save gavinblair/560920 to your computer and use it in GitHub Desktop.

Select an option

Save gavinblair/560920 to your computer and use it in GitHub Desktop.
Convert timestamp to readable date right in MySQL
SELECT date_format(FROM_UNIXTIME(u.access), '%Y %M %D') FROM users u ORDER by u.access DESC;
@gavinblair

Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment