Selecting a date 5 days from now in cfquery
I am trying to use cfschedule to send an email to a speaker who will give a presentation 5 days from now. I tried using the following code:
<CFQUERY Name="getInfo" datasource="#application.database#">
SELECT pres_id, pres_date
FROM presentations
where pres_date = #DateFormat(DateAdd("d",5,Now()),"mm/dd/yyyy")#
</CFQUERY>
Where pres_date is saved in the database in the following format: mm/dd/yyyy, ie: 2/1/2011. I can output the following: #DateFormat(DateAdd("d",5,Now()),"mm/dd/yyyy")# , and get the correct date, again 2/1/2011, that corresponds with the date saved in the database. But when I put the DateFormat string in the CFQUERY nothing shows when I call up the script. Any ideas why?
