SELECT rows between two datetimes when the range is dynamic

I’m trying to select rows that fall into a certain date range from my database table. The range is determined dynamically by the user. In my database I have a column called “dateAndTime”. It has dates stored into it in this format: 2021-06-01 19:37:00 I’m trying to select the rows with this: function getEventsByDateRange(){ $eventType … Read more