Hi,

I think you will find what you need in the Date class.

Bill Stevens
Doug Bromley wrote:
> Hi All
> 
> I've spent some time trying to find what I thought would be a simple
> solution, but so far I've failed
> Simply put; I want to pick a start date and end date with a format of
> "01-jan-2006".  Then increment by one day the date until it reaches the 
> end
> date.  For example:
> 
> 01-jan-2006
> 02-jan-2006
> 03-jan-2006
> 04-jan-2006
> 
> However it also needs to clock onto the next month - I'm hoping the 
> class
> can do this without any special code?  So when it hits say "28-feb-2006" 
> the
> next increment will be "01-mar-2006".
> 
> This is probably incredibly simple and I've looked on Google and the 
> Pickaxe
> book is on my lap as I type this but I'm just not seeing the answer.
> 
> Many thanks for any help.
> 
> All the best.
> 
> Doug


-- 
Posted via http://www.ruby-forum.com/.