Jump to content

INSERTing a date with Coldfusion


Andrew K.

Recommended Posts

Okay so I'm using ColdFusion and I'm trying to insert a date into a database.I got the Error Executing Database Query. error and I look at my query and it only makes sense that the date is being entered wrong because the only other values I am entering are numbers and I know how to enter them.So what is the correct way to insert a date (ex. #now()#) into a database?

Link to comment
Share on other sites

You should post your SQL statement. This could be because the cell that you are trying to insert a date into is not of the 'date' type. If you are not sure that you are using the date variable correctly for the insert read here.http://us3.php.net/date

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...