2009-08-15 7 views

答えて

3

これはかなり近いはずです。

d = DateTime.new(2009, 1, 1) 
Blog.find(:all, :conditions => [ "created_at >= ? AND created_at < ?", d.beginning_of_day, d.tomorrow.beginning_of_day ]) 
関連する問題