gasparrelli
Programmer
We are using cfstoredproc to insert and update records in our Oracle database. We accept dates through our user interface as mm/dd/yyyy and these are jscript validated. Trouble is that one of our CF servers using the oracle native 8.0 driver is having trouble sending "correct" dates and we aren't sure how to fix this.
For example, a user entering 12/01/2000 (intending mm/dd/yyyy)would get a record in the oracle db for 12-JAN-2000. If the user enters 12/30/2000 however oracle would correctly get 30-DEC-2000. Does anyone know how to fix this or what is causing it?
It seems that CF is sending oracle in its cfprocparam bind parameters (which we are passing as SQL_Date) what the user enters as the days in the months place, unless the day is out of range as a month, in which case it correctly passes mm/dd/yyyy.
This is only happening on one of our CF servers also, another CF server in development running the same app doesn't make this mistake.
THanks for any help!
For example, a user entering 12/01/2000 (intending mm/dd/yyyy)would get a record in the oracle db for 12-JAN-2000. If the user enters 12/30/2000 however oracle would correctly get 30-DEC-2000. Does anyone know how to fix this or what is causing it?
It seems that CF is sending oracle in its cfprocparam bind parameters (which we are passing as SQL_Date) what the user enters as the days in the months place, unless the day is out of range as a month, in which case it correctly passes mm/dd/yyyy.
This is only happening on one of our CF servers also, another CF server in development running the same app doesn't make this mistake.
THanks for any help!