I have created a model called:

`DoctorAppointment`, which has mainly two attributes, `apt_from: DateTime` object and `apt_to: DateTime` object

I have created multiples appointments for different times for the same day. And I am trying get all the appointment records for `apt_from:` having today's date. and for the whole week

This doesnt seem to work.

```
DoctorAppointment.where("apt_from =?" ,DateTime.now)

```

This doesnt seem to return any records, even though I created some records on the current date.

What am I doing wrong here?

UPDATE: I fixed one of the issues I was facing, because of the sql keyword conflict. After seeing the comment.

I am using Rails 6 and sqlite