From: Gregory Seidman Date: 2008-07-16T21:32:45+09:00 Subject: Re: Calculate last day of month On Wed, Jul 16, 2008 at 11:41:32AM +0900, Platoon Tb wrote: > class Date > def self.last_day_of_the_month(yyyy, mm) > new(yyyy, mm).next_month - 1 > end > end It's easier than that. class Date def self.last_day_of_the_month(yyyy, mm) new(yyyy, mm, -1) end end --Greg