I am trying to insert NOW
into a MySQL table. Something like:
<cfset datatime = CREATEODBCDATETIME( Now() ) />
<cfquery name="qInsert" datasource="#dbanme#" >
INSERT INTO TableName(....,date_created, date_modified)
VALUES(...,'#datatime#', '#datatime#')
</cfquery>
But I am getting the following error:
Invalid JDBC timestamp escape
Any help?