Ask a Question related to Coldfusion Database Access, Design and Development.
-
CheapEnergy #1
CFMX7 & informix Date conversion woes
I have a trial install of CF MX7 w/ informix 9.3 on linux. Everything works
fine until I query using dates.
The front-end MUST allow users to query in "MM/DD/YY" format.
When I submit a cfm page it dies with the error - "ERROR executing Database
Query...string to date conversion error"
However the same page works okay if the date is submitted in the format
"YYYY-MM-DD'
I tried setting the env variable DBDATE, but that has not helped.
Any thoughts?
CheapEnergy Guest
-
CFMX7 Installation Woes (404 null)
I'm trying to install ColdFusion MX7 to a brand new Windows 2003 server with IIS for one of my clients. I get one error when I install: ... -
XML Date Conversion
Anyone know how to convert this: 2005-01-17T06:31:54Z into something useful? I can't seem to find the correct combinations of functions to convert... -
help with date conversion
Hello All I have used the time() function to create entries into a MySQL Dbase. However, I am now unable to convert that string back to... -
date conversion
Hi all, Is there a way to get a short date, eg. 2/3/03 and test what format is is set to from within director. Like if it is DD/MM/YY or... -
Date Woes
I am trying to convert a date from this format: yyyymmddHHMMSS.mmmmmmsUUU to a format that ASP.NET (VB.NET) understands. The above date... -
Dan Bracuk #2
Re: CFMX7 & informix Date conversion woes
Write some code to format the date so that you can make it play with your db.
Originally posted by: CheapEnergy
I have a trial install of CF MX7 w/ informix 9.3 on linux. Everything works
fine until I query using dates.
The front-end MUST allow users to query in "MM/DD/YY" format.
When I submit a cfm page it dies with the error - "ERROR executing Database
Query...string to date conversion error"
However the same page works okay if the date is submitted in the format
"YYYY-MM-DD'
I tried setting the env variable DBDATE, but that has not helped.
Any thoughts?
Dan Bracuk Guest
-
CheapEnergy #3
Re: CFMX7 & informix Date conversion woes
The correct way is to use the new 3.5 JDBC driver and to set the DBDATE
envrionment variable in the connection string
However I am having problems doing this.
I put : DBDATE=MDY4 in the connection string field and restarted CF,
That did not fix the problem. But it did erase the connection string settings
Does anyone know the correct way to set the connection string?
CheapEnergy Guest
-
CheapEnergy #4
Re: CFMX7 & informix Date conversion woes
In case others face this problem , here is what I had to do:
Delete the data source in cold fusion administrator as cold fusion does not
retain connection string parameters after a restart.
Recreate the data source in Cold Fusion Administrator, and specify
DBDate=MDY4 or the format you need.
Voila ! it works.
CheapEnergy Guest



Reply With Quote

