Hi,
I need to query a date time field and pull all events happening during a particular day. These events get displayed to the user and I know I I have valid dates, but I don't get any results. I am thinking that my query is also looking at the time in the field, but I don't know how to query on the date only.
Here's my current query:
<CFQUERY name="today" datasource="#dsn#">
Select *
From events
Where OrgID= '#ORGID#'
AND Eventdate='(NOW())'
</cfquery>
Any help would be appreciated.
I need to query a date time field and pull all events happening during a particular day. These events get displayed to the user and I know I I have valid dates, but I don't get any results. I am thinking that my query is also looking at the time in the field, but I don't know how to query on the date only.
Here's my current query:
<CFQUERY name="today" datasource="#dsn#">
Select *
From events
Where OrgID= '#ORGID#'
AND Eventdate='(NOW())'
</cfquery>
Any help would be appreciated.