Skip to content

Instantly share code, notes, and snippets.

@tinderfields
Created April 19, 2012 08:02
Show Gist options
  • Save tinderfields/2419518 to your computer and use it in GitHub Desktop.
Save tinderfields/2419518 to your computer and use it in GitHub Desktop.
Replace human readable dates in strings with mysql dates
string.gsub(/\"(\d+)\/(\d+)\/(\d+)\"/, "\"$3-$2-$1\"")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment