Skip to content

Instantly share code, notes, and snippets.

@ajtrichards
Created April 7, 2015 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajtrichards/56c9c3756b71537a16ff to your computer and use it in GitHub Desktop.
Save ajtrichards/56c9c3756b71537a16ff to your computer and use it in GitHub Desktop.
Unix Date SQL query
SELECT * FROM tablename WHERE date <= UNIX_TIMESTAMP(STR_TO_DATE('Apr 07 2015 09:00AM', '%M %e %Y %h:%i%p'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment