How to write a Date field with Java and iBatis? [message #145697] |
Fri, 04 November 2005 21:02 |
adamjsawyer
Messages: 79 Registered: April 2005 Location: Perth, Western Australia ...
|
Member |
|
|
I am writing a java application that writes to to an oracle database using Java SDK 1.4.1 and the iBatis framework. What I would like to know is how can I write a date field to the database? I had so much trouble last time with Access that I removed the date fields from the database.
Can I just use a Date variable, pull out the dd + '/' + mm + '/' + yy into a String variable, and write it to the database using iBatis? In an oracle form, I would just enter this as a String anyway, and let Oracle sort out the formatting.
Any help appreciated
Adam
|
|
|