我用的是ruby 1.9.3
,我想从'mm/dd/yyyy
'日期format
字符串中得到Date or Time
个对象
Time.zone.parse("12/22/2011")
这给了我*** ArgumentError Exception: argument out of range
英镑
我用的是ruby 1.9.3
,我想从'mm/dd/yyyy
'日期format
字符串中得到Date or Time
个对象
Time.zone.parse("12/22/2011")
这给了我*** ArgumentError Exception: argument out of range
英镑
require 'Date'
my_date = Date.strptime("12/22/2011", "%m/%d/%Y")