From: Greg Hauptmann Date: 2008-12-19T16:26:07+09:00 Subject: could this one line Date extension to return the end of financial year date be any more compact? ------=_Part_33935_9944904.1229672050321 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline could this be any more compact or ruby like that it is? class Date def *financial_year_end* Date.civil(year, 6, 30) < self ? Date.civil(year, 6, 30) : Date.civil(year - 1, 6, 30) end end ------=_Part_33935_9944904.1229672050321--