From: Gregory Seidman Date: 2008-07-16T23:17:11+09:00 Subject: Re: Calculate last day of month On Wed, Jul 16, 2008 at 10:44:35PM +0900, Bill Walton wrote: > > Gregory Seidman wrote: > > > It's easier than that. > > > > class Date > > def self.last_day_of_the_month(yyyy, mm) > > new(yyyy, mm, -1) > > end > > end > > Why override Date at all when we've got > ActiveSupport::CoreExtensions::Date::Calculations and can just use > 'end_of_month'? Because this is the ruby list, not the rubyonrails list. --Greg