As a general rule, it is better to use db functions than cf
functions in situations like this. I don't use mysql myself, so I
don't know if it has a function that returns the current date and
time. But if it does, you should use it.
If not, use the cf createodbcdatetime function, not
dateformat.
> As a general rule, it is better to use db functions than
cf functions in
> situations like this.
Sorry, yes, agreed. If I was setting the CURRENT date, I'd
use a DB
function to do it. If I was setting any other date, I'd use
<cfqueryparam>
to pass it.
In answer to your actual question, and in a summary of the
others, you should have been using CreateODBCDDateTime whether
using Access or SQL or any other database... it looks like before
it was being put into a text field since you had quotes around it.