From: Sky Yin Date: 2006-01-25T08:35:27+09:00 Subject: Re: split up days sry, I copied a wrong part of my own code. What I tried to do is to split the string "year, month, day" into 3 integers and store in an array [year, month, day], then create Date objects from the arrays. def new_date(date) Date.new(date[0], date[1], date[2]) end date_start = @start.split(',').map {|x|, x.to_i} date_stop = @stop.split(',').map {|x|, x.to_i} days = (new_date(date_start)..new_date(date_stop)).to_a This should work now. On 1/24/06, misiek wrote: > I removed , from date_start = @start.split(',').map {|x| x.to_i} > ^ > > now got > private method `split' called for Tue Jan 24 00:00:00 CST 2006:Time > > -- Blog >>> http://spaces.msn.com/members/skyincookoo