From: Daniel Waite Date: 2007-04-14T14:20:11+09:00 Subject: Date math without the dates... Hi all. Observe: (Date.today..Date.today + 90).to_a.size # ~90 That operation is, unfortunately, slow. Well, when you're calling it 100+ times it's slow. :) Is there a way to get at the result of that operation (an integer) with two date objects? e.g. class AccountTransaction attr_accessor :posted def day_count(date) (posted..date).to_a.size end end Any ideas? -- Posted via http://www.ruby-forum.com/.