Find Records Created In A Particular Month Rails

[Solved] Find Records Created In A Particular Month Rails | Ruby - Code Explorer | yomemimo.com
Question : find records created in a particular month rails

Answered by : condemned-cassowary-6t5nrqtxnbv5

Model.where(:date_column => date)
Model.where('extract(year from date_column) = ?', desired_year)
Model.where('extract(month from date_column) = ?', desired_month)
Model.where('extract(day from date_column) = ?', desired_day_of_month)

Source : | Last Update : Tue, 01 Sep 20

Answers related to find records created in a particular month rails

Code Explorer Popular Question For Ruby