Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem updating DATE field in CF

Status
Not open for further replies.

msng

Programmer
Oct 14, 2003
27
0
0
US
I have a field last_update of the type DATE in ORacle.

To update this field with today's date, I am doing as follow:

last_update = #createODBCDate(now())#

However, this gives an error.

What wrong am I doing here? Please help.
 
my guess is you're not clicking the button hard enough....

what is the error?

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
try:
Code:
last_update = ###createODBCDate(now())###

or

Code:
last_update = '#createODBCDate(now())#'

Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so.
-Douglas Adams (1952-2001)
 
Try using cfqueryparam in your query. Oracle gets funny with dates sometimes.
Code:
last_update = <cfqueryparam value="#Now()#" cfsqltype="CF_SQL_DATE">



Hope This Helps!

Ecobb

&quot;My work is a game, a very serious game.&quot; - M.C. Escher
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top