How can I create a new Date object in IRB with a given date. The following didn't work.
1.9.3p194 :053 > require 'active_support'
=> true
1.9.3p194 :054 > Date.new
=> #<Date:0x9d80730>
1.9.3p194 :055 > Date.parse('12/01/2012')
NoMethodError: undefined method `parse' for Date:Class
from (irb):55
1.9.3p194 :055 > Date.new('12/01/2012')
ArgumentError: wrong number of arguments(1 for 0)
question from:https://stackoverflow.com/questions/12544552/how-can-i-create-a-new-date-instance-in-ruby