From: khaines@... Date: 2008-05-23T03:21:11+09:00 Subject: Re: Date Parsing On Thu, 8 May 2008, 7stud -- wrote: > 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. require 'date' Nothing is broken. Kirk Haines