How can I get the records that were created_at
during the last fully completed week - i.e. between last Monday and last Sunday?
To be absolutely clear, if today was Wednesday 10 July, I would want the records between very early morning Monday 1 July and very late evening Sunday 7 July. If it were Friday 12 July, I would still want the records between Monday 1 July and very late evening Sunday 7 July. But if it was Monday 15 July, I would want records between Monday 8 July and very late evening Sunday 14 July
How can I achieve this?
Note
I can easily get a rolling week's records, i.e. the records between the current time and one week ago (i.e. Time.now - 7.days
). This is not what I'm after.