From: Dhruva Sagar Date: 2010-09-07T12:27:49+09:00 Subject: Re: convert date --0015174bdcbe134c31048fa2fb0f Content-Type: text/plain; charset=UTF-8 This is odd. Although i'd like to point out that 'Date' library is not part of rubygems and you don't need to require 'rubygems' before requiring 'date'. Perhaps you might want to try and require 'date' without requiring 'rubygems'... Beyond that I would need more info regarding your setup to comment on anything, what ruby version, what OS, how did you install ruby, etc... -- Thanks & Regards, Dhruva Sagar. On Tue, Sep 7, 2010 at 08:51, Pen Ttt wrote: > in my irb console: > irb(main):001:0> require 'rubygems' > => true > irb(main):002:0> require 'date' > => false > irb(main):003:0> puts Date.parse("oct").to_s.split("-")[1] > 10 > => nil > > 1.why > irb(main):002:0> require 'date' > => false > > 2.is there more simple way to change "oct" into 10? > -- > Posted via http://www.ruby-forum.com/. > > --0015174bdcbe134c31048fa2fb0f--