This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes JDBC and the fly likes storing date in database Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "storing date in database" Watch "storing date in database" New topic

storing date in database

jen plecerda

Joined: Mar 02, 2007
Posts: 4

can anyone help me how to store a string that i converted as a java date in a database? using mysql as a database. Thanks in advance!!!
Ricky Martaputra
Ranch Hand

Joined: Apr 04, 2005
Posts: 42
try to use PreparedStatement.
I agree. Here's the link:
subject: storing date in database