From: "Marston A." Date: 2006-04-23T20:58:39+09:00 Subject: How to make an array from a date range? What is the easiest way in Ruby to make an array our of a date range? Something like this: @date1 = "2006-04-01" @date2 = "2006-04-23" array = [@date1..@date2] Something like that would be an easy solution as @date1 and @date2 are going to by dynamic, but this doesn't work as they are strings. Or would I have to manually insert the ranges one by one myself? array = ["2006-04-01", "2006-04-02", ... , "2006-04-23"] Thanks for any help in advanced! -- Posted via http://www.ruby-forum.com/.