I have a date range as;
start_day = Date.parse("2017-02-15")
last_day = Date.parse("2017-02-17")
I would like to get records as;
@availabilities = Availabilities.where(date: start_day..last_day)
But the thing here is, it looks for the records in between. I need to check for 15
& 17
as well. Because when I use this, it returns nil. However, I have a record for 2017-02-15
.
Thank you.