From: 7stud -- Date: 2008-05-08T04:09:19+09:00 Subject: Re: Date Parsing Clement Ow wrote: > Clement Ow wrote: >> Date.strptime('20081020',"%Y%m%d") >> undefined method `strptime' for Date:Class (NoMethodError) >> >> Date.parse('20081020',"%Y%m%d").to_s >> undefined method `parse' for DateTime:Class (NoMethodError) > > and im running ruby 1.8.5.. could it be why this has a prob? Like a bug > or something? It appears that Date.parse() and Date.strptime() are/were broken, and therefore the defacto means for parsing Dates from Strings are the Standard Library modules: ParseDate and Scanf. For instance, "The Ruby Way" doesn't even mention Date.parse() or Date.strptime() when discussing how to get Dates from Strings. And pickaxe2 doesn't cover the Date/Time subject at all. -- Posted via http://www.ruby-forum.com/.