Created
January 19, 2012 20:24
-
-
Save maletor/1642352 to your computer and use it in GitHub Desktop.
One line
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
date = parsed_response[0][0].match(/Assignments for (\S*)/) | |
date = $1 | |
date = date.gsub!(/(\d{1,2})-(\d{1,2})-(\d{2})/, '\1/\2/20\3') | |
self.date = Date.parse(date) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment