2009-08-15 5 views

Répondre

3

Cela devrait être assez proche.

d = DateTime.new(2009, 1, 1) 
Blog.find(:all, :conditions => [ "created_at >= ? AND created_at < ?", d.beginning_of_day, d.tomorrow.beginning_of_day ]) 
Questions connexes