In Ruby 1.87 I could do:
Date.parse (\"3/21/2011\")
Now in 1.9.2 I get:
ArgumentError: invalid date
Use strptime and give a specific time format.
strptime
ruby-1.9.2-p136 :022 > Date.strptime '03/21/2011', '%m/%d/%Y' => #
See michaelmichael's response for the reason for this difference between Ruby versions.