From: khaines@... Date: 2006-08-30T08:04:23+09:00 Subject: Re: Comparing Dates On Wed, 30 Aug 2006, Parv G. wrote: > Hi, > This might be simple question for some you so. > > I'm trying to compare today's dates with another date, which is in the > format of mm/dd/yy. Can somebody help? > > I tried the following, but it doesn't work: > require 'date' > > if(Date.today <=> "09/29/06") or (Date.today <=> "092906") > ..... > else > .... > end require 'date' Date.today == Date.parse('08/29/2006') Kirk Haines