This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
What database are you using? What does your SQL statement look like? What type is the database field you are trying to change? You give us a result if you call "getDate". What do you call "getDate" on? A result set? A Date instance?
Database = oracle; SQL = a simple "Insert into table (field) values ( dDate ); Field = I am taking a java string and inserting it into an oracle date field (is that what you were asking?) getDate = getDate is in a java data object (just a bunch of getters and setters) it returns a date object. when I print it out I get "Sat Sep 30 00:00:00 BST 2006" where the String was 9/30/2006.
I did develop an answer but would still like further input as I might not have the best answer. My answer was to ignore the java Date altogether and just call the oracle to_date function in the sql I passed. The to_date function will except a string (9/30/2006) and convert it to a date. perhaps not the best solution as the database is having to do the work but it seems to be an answer.