From: Josselin Date: 2006-07-26T15:00:12+09:00 Subject: Re: ParseDate in local format... On 2006-07-25 18:26:52 +0200, Bojan Mihelac said: > Here is how I do it to parse mm.dd.yyyy. dates: > > require ('parsedate') > module ParseDate > class << self > alias_method :old_parsedate, :parsedate unless > method_defined?(:old_parsedate) > end > > def self.parsedate(str) > match = /(\d{1,2})\.(\d{1,2})\.(\d{2,4})\.?/.match(str) > return ParseDate.old_parsedate(str) unless match > [match[3].to_i, match[2].to_i, match[1].to_i, nil, nil, nil, nil, nil] > end > end thanks a lot... as always .....one vision of the world = one vision of the time = one vision of the date