Created
April 19, 2012 08:02
-
-
Save tinderfields/2419518 to your computer and use it in GitHub Desktop.
Replace human readable dates in strings with mysql dates
This file contains 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
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