Skip to content

Instantly share code, notes, and snippets.

@danielmorrison
Created March 26, 2011 19:35
Show Gist options
  • Save danielmorrison/888566 to your computer and use it in GitHub Desktop.
Save danielmorrison/888566 to your computer and use it in GitHub Desktop.
Problems with Date.parse
# Ruby 1.8.7
> Date.parse('01/06/2010').to_s
=> "2010-06-01"
# Ruby 1.9.2
> Date.parse('01/06/2010').to_s
=> "2010-01-06"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment