From: Joel Pearson Date: 2012-11-29T19:28:26+09:00 Subject: Re: Trouble with Chronic Thanks, that never occurred to me! This'll do for the moment. There are probably better ways to do it but I don't have time to experiment any further right now. def get_end_of_last_month Date.today - Date.today.day end def get_start_of_last_month t = Date.today - Date.today.day Date.new(t.strftime('%Y').to_i,t.strftime('%m').to_i,1) end -- Posted via http://www.ruby-forum.com/.