0

How do I use the "created_at" field to retrieve all records created on particular date. I specifically want to use the "where" method because I am querying other fields too.

The format of the date input provided by the user is 'YYYY-MM-DD'

user1175969
  • 540
  • 6
  • 19
  • 1
    Possible duplicate of [Rails ActiveRecord date between](http://stackoverflow.com/questions/2381718/rails-activerecord-date-between) – settheline Jun 29 '16 at 22:38
  • Thanks, but that's not exactly what I want. The format of the date input provided by the user is 'YYYY-MM-DD' – user1175969 Jun 29 '16 at 22:40
  • 2
    Here a similar question for you to take a look at. http://stackoverflow.com/questions/21410149/rails-console-find-where-created-at-certain-day – Dan Rubio Jun 29 '16 at 22:42
  • That works. Thanks! – user1175969 Jun 29 '16 at 22:44
  • Glad you found help. However, your question was premature. Describing a framework method should be the job of that framework's documentation, not stackoverflow. Please revisit http://stackoverflow.com/help/how-to-ask – Raffael Jun 29 '16 at 23:02
  • 1
    Stackoverflow is for people to ask questions about programming. This is indeed where the question should be asked whether it's about the Rails framework or about a code issue. – jaydel Jun 30 '16 at 12:49

0 Answers0