Generate an array of dates

I want to generate an array of dates from date1 to date2

I try with

but not works

How i can do?
Thanks

On 12/11/2007, Luca R. [email protected] wrote:

I want to generate an array of dates from date1 to date2

I try with [date1…date2]

but not works

(date1…date2).to_a