if you're dealing with sql and
java 1.4+, it will probably be helpful for you to review the java.sql and javax.sql API's right off
e.g.
if you don't have these packages, you can use milliseconds or Calendar class to construct a SQL DATE in the desired format.
hth!