2009-08-15 6 views

Antwort

3

Das sollte ziemlich nah sein.

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