I want to extract the exchange rates from today(ie. the exchange rates have a time
field of type DateTime
and from this I want to extract the day
). I want to do something like this:
ExchangeRates.where("time.day == ?", pred.time)
Is something of the kind possible?