Kjell Bublitz <[EMAIL PROTECTED]> to rubyonrails-sp. Check out this post from Ben Nolan. Might be interesting for you: http://www.bennolan.com/articles/2007/02/14/date-prototype-succ
This is a succ function for the date prototype and could be a worthy addition. Date.prototype.succ = function(){ return new Date(this.getFullYear(), this.getMonth(), this.getDate() +1); } Allows you to go: R(startDate, endDate).each(function(date){ console.log(date); }); Which is useful for iterating through, for example, days of the month. Original reference is http://groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/2dd09ec74a2b7142/ I am just crossposting. Gareth --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype: Core" group. To post to this group, send email to prototype-core@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/prototype-core?hl=en -~----------~----~----~----~------~----~------~--~---