I am trying to write a coldfusion query to extract info from an MS Access97 database, something like:
<cfset today=DateFormat(Now())>
<cfquery="get_todays_records" ...>
SELECT *
FROM MyTable
WHERE date = '#today#'>
I have the format of the field 'date' set to medium date, so if I look at the records it looks like this: 07-Dec-00.
I have tried using today=CreateODBCDate(Now()) and that doesn't work either. Any ideas?
<cfset today=DateFormat(Now())>
<cfquery="get_todays_records" ...>
SELECT *
FROM MyTable
WHERE date = '#today#'>
I have the format of the field 'date' set to medium date, so if I look at the records it looks like this: 07-Dec-00.
I have tried using today=CreateODBCDate(Now()) and that doesn't work either. Any ideas?