Sometimes, we want to query records over the whole day for a given date. 1>> User.where(created_at: Date.today.beginning_of_day..Date.today.end_of_day) 2 3=> SELECT "users".* FROM "users" WHERE ("users"."created_at" BETWEEN $1 AND $2) [["created_at", 2017-04-09 00:00:00 UTC], ["created_at", 2017-04-09 23:59:59 UTC]]Copy 1>> User.where(created_at: Date.today.all_day) 2 3=> SELECT "users".* FROM "us